home *** CD-ROM | disk | FTP | other *** search
Unknown | 1995-02-23 | 172.3 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 0d 0a 0d 0a 20 20 54 68 | 65 20 41 75 72 6f 72 61 |.... Th|e Aurora|
|00000010| 20 4d 61 63 72 6f 20 4c | 61 6e 67 75 61 67 65 20 | Macro L|anguage |
|00000020| 52 65 66 65 72 65 6e 63 | 65 0d 0a 20 20 c4 c4 c4 |Referenc|e.. ...|
|00000030| c4 c4 c4 c4 c4 c4 c4 c4 | c4 c4 c4 c4 c4 c4 c4 c4 |........|........|
|00000040| c4 c4 c4 c4 c4 c4 c4 c4 | c4 c4 c4 c4 c4 c4 c4 c4 |........|........|
|00000050| 0d 0a 20 20 54 68 69 73 | 20 52 65 66 65 72 65 6e |.. This| Referen|
|00000060| 63 65 20 64 65 73 63 72 | 69 62 65 73 20 74 68 65 |ce descr|ibes the|
|00000070| 20 41 75 72 6f 72 61 20 | 4d 61 63 72 6f 20 4c 61 | Aurora |Macro La|
|00000080| 6e 67 75 61 67 65 20 28 | 41 4d 4c 29 2e 20 46 6f |nguage (|AML). Fo|
|00000090| 72 20 61 0d 0a 20 20 63 | 6f 6d 70 6c 65 74 65 20 |r a.. c|omplete |
|000000a0| 64 65 73 63 72 69 70 74 | 69 6f 6e 20 6f 66 20 61 |descript|ion of a|
|000000b0| 6c 6c 20 62 75 69 6c 74 | 69 6e 20 61 6e 64 20 6c |ll built|in and l|
|000000c0| 69 62 72 61 72 79 20 66 | 75 6e 63 74 69 6f 6e 73 |ibrary f|unctions|
|000000d0| 2c 20 73 65 65 20 74 68 | 65 20 41 4d 4c 0d 0a 20 |, see th|e AML.. |
|000000e0| 20 46 75 6e 63 74 69 6f | 6e 20 52 65 66 65 72 65 | Functio|n Refere|
|000000f0| 6e 63 65 2e 20 46 6f 72 | 20 69 6e 66 6f 72 6d 61 |nce. For| informa|
|00000100| 74 69 6f 6e 20 6f 6e 20 | 68 6f 77 20 74 6f 20 69 |tion on |how to i|
|00000110| 6e 73 74 61 6c 6c 2c 20 | 63 6f 6e 66 69 67 75 72 |nstall, |configur|
|00000120| 65 2c 20 61 6e 64 0d 0a | 20 20 75 73 65 20 41 75 |e, and..| use Au|
|00000130| 72 6f 72 61 2c 20 73 65 | 65 20 74 68 65 20 41 75 |rora, se|e the Au|
|00000140| 72 6f 72 61 20 45 64 69 | 74 6f 72 20 55 73 65 72 |rora Edi|tor User|
|00000150| 73 20 47 75 69 64 65 2e | 0d 0a 0d 0a 20 20 49 66 |s Guide.|.... If|
|00000160| 20 79 6f 75 20 61 72 65 | 20 76 69 65 77 69 6e 67 | you are| viewing|
|00000170| 20 74 68 69 73 20 64 6f | 63 75 6d 65 6e 74 20 77 | this do|cument w|
|00000180| 69 74 68 20 41 75 72 6f | 72 61 2c 20 79 6f 75 20 |ith Auro|ra, you |
|00000190| 63 61 6e 20 75 73 65 20 | 74 68 65 0d 0a 20 20 27 |can use |the.. '|
|000001a0| 4c 61 6e 67 75 61 67 65 | 20 52 65 66 65 72 65 6e |Language| Referen|
|000001b0| 63 65 20 54 6f 70 69 63 | 73 27 20 70 6f 70 75 70 |ce Topic|s' popup|
|000001c0| 20 6d 65 6e 75 20 6f 6e | 20 74 68 65 20 48 65 6c | menu on| the Hel|
|000001d0| 70 20 6d 65 6e 75 20 3c | 66 31 3e 20 74 6f 20 6a |p menu <|f1> to j|
|000001e0| 75 6d 70 0d 0a 20 20 71 | 75 69 63 6b 6c 79 20 74 |ump.. q|uickly t|
|000001f0| 6f 20 61 6e 79 20 74 6f | 70 69 63 20 69 6e 20 74 |o any to|pic in t|
|00000200| 68 65 20 64 6f 63 75 6d | 65 6e 74 2e 0d 0a 0d 0a |he docum|ent.....|
|00000210| 20 ff 54 6f 20 74 72 61 | 6e 73 66 65 72 20 74 6f | .To tra|nsfer to|
|00000220| 20 74 68 65 20 66 75 6c | 6c 20 41 4d 4c 20 46 75 | the ful|l AML Fu|
|00000230| 6e 63 74 69 6f 6e 20 52 | 65 66 65 72 65 6e 63 65 |nction R|eference|
|00000240| 3a ff 6d 6f 76 65 20 74 | 68 65 20 63 75 72 73 6f |:.move t|he curso|
|00000250| 72 20 74 6f 20 61 0d 0a | 20 20 66 75 6e 63 74 69 |r to a..| functi|
|00000260| 6f 6e 20 6e 61 6d 65 20 | 6f 72 20 73 74 61 74 65 |on name |or state|
|00000270| 6d 65 6e 74 20 6b 65 79 | 77 6f 72 64 20 69 6e 20 |ment key|word in |
|00000280| 74 68 69 73 20 72 65 66 | 65 72 65 6e 63 65 20 64 |this ref|erence d|
|00000290| 6f 63 75 6d 65 6e 74 20 | 61 6e 64 0d 0a 20 20 70 |ocument |and.. p|
|000002a0| 72 65 73 73 20 3c 73 68 | 69 66 74 20 66 32 3e 2e |ress <sh|ift f2>.|
|000002b0| 20 4e 6f 74 65 20 74 68 | 61 74 20 6d 6f 73 74 20 | Note th|at most |
|000002c0| 65 78 74 65 6e 73 69 6f | 6e 20 66 75 6e 63 74 69 |extensio|n functi|
|000002d0| 6f 6e 73 20 61 72 65 20 | 6e 6f 74 0d 0a 20 20 64 |ons are |not.. d|
|000002e0| 6f 63 75 6d 65 6e 74 65 | 64 20 69 6e 20 74 68 65 |ocumente|d in the|
|000002f0| 20 41 4d 4c 20 46 75 6e | 63 74 69 6f 6e 20 52 65 | AML Fun|ction Re|
|00000300| 66 65 72 65 6e 63 65 2e | 0d 0a 0d 0a 20 20 c4 c4 |ference.|.... ..|
|00000310| c4 c4 c4 c4 c4 c4 c4 c4 | c4 c4 c4 c4 c4 c4 c4 c4 |........|........|
|00000320| c4 c4 c4 c4 c4 c4 c4 c4 | c4 c4 c4 c4 c4 c4 c4 c4 |........|........|
|00000330| c4 c4 c4 c4 c4 c4 c4 c4 | c4 c4 c4 c4 c4 c4 c4 c4 |........|........|
|00000340| c4 c4 c4 c4 c4 c4 c4 c4 | c4 c4 c4 c4 c4 c4 c4 c4 |........|........|
|00000350| c4 c4 c4 c4 0d 0a 20 20 | 43 6f 70 79 72 69 67 68 |...... |Copyrigh|
|00000360| 74 20 28 43 29 20 31 39 | 39 35 20 62 79 20 6e 75 |t (C) 19|95 by nu|
|00000370| 54 65 78 74 20 53 79 73 | 74 65 6d 73 2e 20 20 41 |Text Sys|tems. A|
|00000380| 6c 6c 20 72 69 67 68 74 | 73 20 72 65 73 65 72 76 |ll right|s reserv|
|00000390| 65 64 20 77 6f 72 6c 64 | 77 69 64 65 2e 0d 0a 20 |ed world|wide... |
|000003a0| 20 4e 6f 20 70 61 72 74 | 73 20 6f 66 20 74 68 69 | No part|s of thi|
|000003b0| 73 20 64 6f 63 75 6d 65 | 6e 74 20 6d 61 79 20 62 |s docume|nt may b|
|000003c0| 65 20 63 6f 70 69 65 64 | 20 69 6e 20 70 61 72 74 |e copied| in part|
|000003d0| 20 6f 72 20 69 6e 20 77 | 68 6f 6c 65 2c 20 65 78 | or in w|hole, ex|
|000003e0| 63 65 70 74 20 61 73 0d | 0a 20 20 70 72 6f 76 69 |cept as.|. provi|
|000003f0| 64 65 64 20 69 6e 20 74 | 68 65 20 4c 69 63 65 6e |ded in t|he Licen|
|00000400| 73 65 20 69 6e 20 74 68 | 65 20 61 63 63 6f 6d 70 |se in th|e accomp|
|00000410| 61 6e 79 69 6e 67 20 64 | 6f 63 75 6d 65 6e 74 61 |anying d|ocumenta|
|00000420| 74 69 6f 6e 2e 0d 0a 20 | 20 c4 c4 c4 c4 c4 c4 c4 |tion... | .......|
|00000430| c4 c4 c4 c4 c4 c4 c4 c4 | c4 c4 c4 c4 c4 c4 c4 c4 |........|........|
|00000440| c4 c4 c4 c4 c4 c4 c4 c4 | c4 c4 c4 c4 c4 c4 c4 c4 |........|........|
|00000450| c4 c4 c4 c4 c4 c4 c4 c4 | c4 c4 c4 c4 c4 c4 c4 c4 |........|........|
|00000460| c4 c4 c4 c4 c4 c4 c4 c4 | c4 c4 c4 c4 c4 c4 c4 0d |........|........|
|00000470| 0a 0d 0a 0d 0a 20 20 49 | 6e 74 72 6f 64 75 63 74 |..... I|ntroduct|
|00000480| 69 6f 6e 00 0d 0a 20 20 | c4 c4 c4 c4 c4 c4 c4 c4 |ion... |........|
|00000490| c4 c4 c4 c4 0d 0a 20 20 | 54 68 65 20 41 75 72 6f |...... |The Auro|
|000004a0| 72 61 20 4d 61 63 72 6f | 20 4c 61 6e 67 75 61 67 |ra Macro| Languag|
|000004b0| 65 20 28 41 4d 4c 29 20 | 69 73 20 74 68 65 20 6e |e (AML) |is the n|
|000004c0| 61 74 69 76 65 20 6d 61 | 63 72 6f 20 6c 61 6e 67 |ative ma|cro lang|
|000004d0| 75 61 67 65 20 6f 66 20 | 54 68 65 0d 0a 20 20 41 |uage of |The.. A|
|000004e0| 75 72 6f 72 61 20 45 64 | 69 74 6f 72 2e 20 41 4d |urora Ed|itor. AM|
|000004f0| 4c 20 69 73 20 61 20 66 | 6c 65 78 69 62 6c 65 2c |L is a f|lexible,|
|00000500| 20 69 6e 74 65 72 70 72 | 65 74 65 64 20 63 6f 6d | interpr|eted com|
|00000510| 70 75 74 65 72 20 6c 61 | 6e 67 75 61 67 65 20 77 |puter la|nguage w|
|00000520| 68 69 63 68 0d 0a 20 20 | 69 73 20 65 61 73 79 2d |hich.. |is easy-|
|00000530| 74 6f 2d 75 73 65 2c 20 | 79 65 74 20 70 6f 77 65 |to-use, |yet powe|
|00000540| 72 66 75 6c 20 61 6e 64 | 20 72 69 63 68 20 69 6e |rful and| rich in|
|00000550| 20 66 75 6e 63 74 69 6f | 6e 2e 20 55 6e 64 65 72 | functio|n. Under|
|00000560| 73 74 61 6e 64 69 6e 67 | 20 74 68 65 0d 0a 20 20 |standing| the.. |
|00000570| 6d 61 63 72 6f 20 6c 61 | 6e 67 75 61 67 65 20 63 |macro la|nguage c|
|00000580| 61 6e 20 68 65 6c 70 20 | 79 6f 75 20 74 6f 3a 0d |an help |you to:.|
|00000590| 0a 0d 0a 20 20 20 20 2d | 20 54 61 69 6c 6f 72 20 |... -| Tailor |
|000005a0| 74 68 65 20 64 61 79 2d | 74 6f 2d 64 61 79 20 6f |the day-|to-day o|
|000005b0| 70 65 72 61 74 69 6f 6e | 20 6f 66 20 74 68 65 20 |peration| of the |
|000005c0| 65 64 69 74 6f 72 20 74 | 6f 20 79 6f 75 72 20 6f |editor t|o your o|
|000005d0| 77 6e 0d 0a 20 20 20 20 | 20 20 70 72 65 66 65 72 |wn.. | prefer|
|000005e0| 65 6e 63 65 73 0d 0a 20 | 20 20 20 2d 20 4d 6f 64 |ences.. | - Mod|
|000005f0| 69 66 79 20 6f 72 20 61 | 64 64 20 74 6f 20 65 78 |ify or a|dd to ex|
|00000600| 69 73 74 69 6e 67 20 65 | 64 69 74 6f 72 20 66 75 |isting e|ditor fu|
|00000610| 6e 63 74 69 6f 6e 73 0d | 0a 20 20 20 20 2d 20 43 |nctions.|. - C|
|00000620| 72 65 61 74 65 20 6e 65 | 77 20 65 64 69 74 6f 72 |reate ne|w editor|
|00000630| 20 66 75 6e 63 74 69 6f | 6e 73 0d 0a 20 20 20 20 | functio|ns.. |
|00000640| 2d 20 43 75 73 74 6f 6d | 69 7a 65 20 64 65 74 61 |- Custom|ize deta|
|00000650| 69 6c 65 64 20 61 73 70 | 65 63 74 73 20 6f 66 20 |iled asp|ects of |
|00000660| 79 6f 75 72 20 65 64 69 | 74 69 6e 67 20 65 6e 76 |your edi|ting env|
|00000670| 69 72 6f 6e 6d 65 6e 74 | 0d 0a 0d 0a 20 20 41 20 |ironment|.... A |
|00000680| 6c 61 72 67 65 20 62 61 | 73 65 20 6f 66 20 6d 61 |large ba|se of ma|
|00000690| 63 72 6f 20 6c 61 6e 67 | 75 61 67 65 20 73 6f 75 |cro lang|uage sou|
|000006a0| 72 63 65 20 61 6e 64 20 | 6f 62 6a 65 63 74 20 63 |rce and |object c|
|000006b0| 6f 64 65 20 69 73 20 73 | 68 69 70 70 65 64 20 77 |ode is s|hipped w|
|000006c0| 69 74 68 0d 0a 20 20 74 | 68 65 20 65 64 69 74 6f |ith.. t|he edito|
|000006d0| 72 2e 20 59 6f 75 20 63 | 61 6e 20 6d 6f 64 69 66 |r. You c|an modif|
|000006e0| 79 20 74 68 65 20 73 6f | 75 72 63 65 20 63 6f 64 |y the so|urce cod|
|000006f0| 65 20 74 6f 20 73 75 69 | 74 20 79 6f 75 72 20 6f |e to sui|t your o|
|00000700| 77 6e 0d 0a 20 20 70 72 | 65 66 65 72 65 6e 63 65 |wn.. pr|eference|
|00000710| 73 2c 20 6f 72 20 79 6f | 75 20 63 61 6e 20 75 73 |s, or yo|u can us|
|00000720| 65 20 74 68 65 20 6d 61 | 63 72 6f 20 6c 61 6e 67 |e the ma|cro lang|
|00000730| 75 61 67 65 20 74 6f 20 | 63 72 65 61 74 65 20 79 |uage to |create y|
|00000740| 6f 75 72 20 6f 77 6e 20 | 6e 65 77 0d 0a 20 20 65 |our own |new.. e|
|00000750| 64 69 74 6f 72 20 66 75 | 6e 63 74 69 6f 6e 73 2e |ditor fu|nctions.|
|00000760| 0d 0a 0d 0a 20 20 41 6c | 74 68 6f 75 67 68 20 69 |.... Al|though i|
|00000770| 74 20 69 73 20 65 61 73 | 79 20 74 6f 20 75 73 65 |t is eas|y to use|
|00000780| 20 74 68 65 20 65 64 69 | 74 6f 72 20 77 69 74 68 | the edi|tor with|
|00000790| 6f 75 74 20 75 6e 64 65 | 72 73 74 61 6e 64 69 6e |out unde|rstandin|
|000007a0| 67 20 61 6c 6c 20 74 68 | 65 0d 0a 20 20 64 65 74 |g all th|e.. det|
|000007b0| 61 69 6c 73 20 6f 66 20 | 74 68 65 20 6d 61 63 72 |ails of |the macr|
|000007c0| 6f 20 6c 61 6e 67 75 61 | 67 65 2c 20 6b 6e 6f 77 |o langua|ge, know|
|000007d0| 6c 65 64 67 65 20 6f 66 | 20 74 68 65 20 6d 61 63 |ledge of| the mac|
|000007e0| 72 6f 20 6c 61 6e 67 75 | 61 67 65 20 63 61 6e 0d |ro langu|age can.|
|000007f0| 0a 20 20 67 69 76 65 20 | 79 6f 75 20 61 20 6d 6f |. give |you a mo|
|00000800| 72 65 20 63 6f 6d 70 6c | 65 74 65 20 75 6e 64 65 |re compl|ete unde|
|00000810| 72 73 74 61 6e 64 69 6e | 67 20 6f 66 20 68 6f 77 |rstandin|g of how|
|00000820| 20 74 68 65 20 65 64 69 | 74 6f 72 20 61 63 74 75 | the edi|tor actu|
|00000830| 61 6c 6c 79 0d 0a 20 20 | 77 6f 72 6b 73 2e 20 45 |ally.. |works. E|
|00000840| 78 70 65 72 69 65 6e 63 | 65 64 20 75 73 65 72 73 |xperienc|ed users|
|00000850| 20 77 69 6c 6c 20 66 69 | 6e 64 20 69 74 20 74 6f | will fi|nd it to|
|00000860| 20 62 65 20 61 6e 20 69 | 6e 64 69 73 70 65 6e 73 | be an i|ndispens|
|00000870| 61 62 6c 65 20 74 6f 6f | 6c 2e 0d 0a 0d 0a 0d 0a |able too|l.......|
|00000880| 20 20 4f 76 65 72 76 69 | 65 77 00 0d 0a 20 20 c4 | Overvi|ew... .|
|00000890| c4 c4 c4 c4 c4 c4 c4 0d | 0a 20 20 49 66 20 79 6f |........|. If yo|
|000008a0| 75 20 62 72 6f 77 73 65 | 20 74 68 65 20 64 69 72 |u browse| the dir|
|000008b0| 65 63 74 6f 72 79 20 77 | 68 65 72 65 20 74 68 65 |ectory w|here the|
|000008c0| 20 65 64 69 74 6f 72 20 | 69 73 20 69 6e 73 74 61 | editor |is insta|
|000008d0| 6c 6c 65 64 2c 20 79 6f | 75 20 77 69 6c 6c 0d 0a |lled, yo|u will..|
|000008e0| 20 20 6e 6f 74 69 63 65 | 20 6f 6e 6c 79 20 6f 6e | notice| only on|
|000008f0| 65 20 65 78 65 63 75 74 | 61 62 6c 65 20 66 69 6c |e execut|able fil|
|00000900| 65 3a 20 41 2e 45 58 45 | 2e 20 54 68 69 73 20 65 |e: A.EXE|. This e|
|00000910| 78 65 63 75 74 61 62 6c | 65 20 66 69 6c 65 20 63 |xecutabl|e file c|
|00000920| 6f 6e 74 61 69 6e 73 0d | 0a 20 20 61 6c 6c 20 6f |ontains.|. all o|
|00000930| 66 20 74 68 65 20 62 75 | 69 6c 74 69 6e 20 66 75 |f the bu|iltin fu|
|00000940| 6e 63 74 69 6f 6e 73 20 | 6f 66 20 74 68 65 20 65 |nctions |of the e|
|00000950| 64 69 74 6f 72 2c 20 61 | 73 20 77 65 6c 6c 20 61 |ditor, a|s well a|
|00000960| 73 20 74 68 65 20 6d 61 | 63 72 6f 0d 0a 20 20 6c |s the ma|cro.. l|
|00000970| 61 6e 67 75 61 67 65 20 | 69 6e 74 65 72 70 72 65 |anguage |interpre|
|00000980| 74 65 72 20 61 6e 64 20 | 63 6f 6d 70 69 6c 65 72 |ter and |compiler|
|00000990| 2e 0d 0a 0d 0a 20 20 57 | 69 74 68 20 74 68 65 20 |..... W|ith the |
|000009a0| 69 6e 74 65 72 70 72 65 | 74 65 72 20 61 6e 64 20 |interpre|ter and |
|000009b0| 63 6f 6d 70 69 6c 65 72 | 20 62 6f 74 68 20 70 72 |compiler| both pr|
|000009c0| 65 73 65 6e 74 20 77 69 | 74 68 69 6e 20 61 6e 20 |esent wi|thin an |
|000009d0| 65 64 69 74 20 73 65 73 | 73 69 6f 6e 2c 0d 0a 20 |edit ses|sion,.. |
|000009e0| 20 6d 61 63 72 6f 20 6c | 61 6e 67 75 61 67 65 20 | macro l|anguage |
|000009f0| 73 6f 75 72 63 65 20 63 | 6f 64 65 20 63 61 6e 20 |source c|ode can |
|00000a00| 62 65 20 65 78 65 63 75 | 74 65 64 20 69 6e 74 65 |be execu|ted inte|
|00000a10| 72 61 63 74 69 76 65 6c | 79 2e 20 49 6e 20 66 61 |ractivel|y. In fa|
|00000a20| 63 74 2c 0d 0a 20 20 62 | 6f 74 68 20 74 68 65 20 |ct,.. b|oth the |
|00000a30| 69 6e 74 65 72 70 72 65 | 74 65 72 20 61 6e 64 20 |interpre|ter and |
|00000a40| 74 68 65 20 63 6f 6d 70 | 69 6c 65 72 20 61 72 65 |the comp|iler are|
|00000a50| 20 61 63 63 65 73 73 69 | 62 6c 65 20 61 73 20 62 | accessi|ble as b|
|00000a60| 75 69 6c 74 69 6e 0d 0a | 20 20 66 75 6e 63 74 69 |uiltin..| functi|
|00000a70| 6f 6e 73 20 77 69 74 68 | 69 6e 20 74 68 65 20 6d |ons with|in the m|
|00000a80| 61 63 72 6f 20 6c 61 6e | 67 75 61 67 65 20 69 74 |acro lan|guage it|
|00000a90| 73 65 6c 66 2e 0d 0a 0d | 0a 20 20 53 69 6e 63 65 |self....|. Since|
|00000aa0| 20 74 68 65 20 65 64 69 | 74 6f 72 20 69 73 20 77 | the edi|tor is w|
|00000ab0| 72 69 74 74 65 6e 20 69 | 6e 20 69 74 73 20 6f 77 |ritten i|n its ow|
|00000ac0| 6e 20 6d 61 63 72 6f 20 | 6c 61 6e 67 75 61 67 65 |n macro |language|
|00000ad0| 2c 20 69 74 20 63 61 6e | 20 62 65 0d 0a 20 20 76 |, it can| be.. v|
|00000ae0| 69 65 77 65 64 20 61 73 | 20 6f 6e 65 20 6c 61 72 |iewed as| one lar|
|00000af0| 67 65 20 63 6f 6d 70 69 | 6c 65 64 20 27 6d 61 63 |ge compi|led 'mac|
|00000b00| 72 6f 27 20 28 63 6f 6e | 74 61 69 6e 65 64 20 69 |ro' (con|tained i|
|00000b10| 6e 20 74 68 65 20 66 69 | 6c 65 20 41 2e 58 29 2e |n the fi|le A.X).|
|00000b20| 20 4d 75 63 68 0d 0a 20 | 20 6f 66 20 74 68 65 20 | Much.. | of the |
|00000b30| 73 6f 75 72 63 65 20 63 | 6f 64 65 20 66 6f 72 20 |source c|ode for |
|00000b40| 74 68 69 73 20 6d 61 63 | 72 6f 20 69 73 20 73 68 |this mac|ro is sh|
|00000b50| 69 70 70 65 64 20 77 69 | 74 68 20 74 68 65 20 65 |ipped wi|th the e|
|00000b60| 64 69 74 6f 72 2c 20 61 | 6c 6c 6f 77 69 6e 67 0d |ditor, a|llowing.|
|00000b70| 0a 20 20 66 6f 72 20 61 | 20 68 69 67 68 20 64 65 |. for a| high de|
|00000b80| 67 72 65 65 20 6f 66 20 | 63 75 73 74 6f 6d 69 7a |gree of |customiz|
|00000b90| 61 74 69 6f 6e 2e 0d 0a | 0d 0a 20 20 48 75 6e 64 |ation...|.. Hund|
|00000ba0| 72 65 64 73 20 6f 66 20 | 62 75 69 6c 74 69 6e 20 |reds of |builtin |
|00000bb0| 61 6e 64 20 75 73 65 72 | 2d 64 65 66 69 6e 65 64 |and user|-defined|
|00000bc0| 20 66 75 6e 63 74 69 6f | 6e 73 20 61 72 65 20 73 | functio|ns are s|
|00000bd0| 75 70 70 6c 69 65 64 20 | 66 6f 72 0d 0a 20 20 6d |upplied |for.. m|
|00000be0| 61 6e 69 70 75 6c 61 74 | 69 6e 67 20 73 74 72 69 |anipulat|ing stri|
|00000bf0| 6e 67 73 2c 20 66 69 6c | 65 73 2c 20 74 65 78 74 |ngs, fil|es, text|
|00000c00| 20 62 75 66 66 65 72 73 | 2c 20 63 75 72 73 6f 72 | buffers|, cursor|
|00000c10| 73 2c 20 77 69 6e 64 6f | 77 73 2c 20 61 6e 64 20 |s, windo|ws, and |
|00000c20| 61 0d 0a 20 20 6c 61 72 | 67 65 20 76 61 72 69 65 |a.. lar|ge varie|
|00000c30| 74 79 20 6f 66 20 6f 74 | 68 65 72 20 69 6e 74 65 |ty of ot|her inte|
|00000c40| 72 6e 61 6c 20 65 64 69 | 74 6f 72 20 73 74 72 75 |rnal edi|tor stru|
|00000c50| 63 74 75 72 65 73 20 61 | 6e 64 20 66 65 61 74 75 |ctures a|nd featu|
|00000c60| 72 65 73 2e 0d 0a 0d 0a | 20 20 41 4d 4c 20 61 6c |res.....| AML al|
|00000c70| 73 6f 20 68 61 73 20 70 | 6f 77 65 72 66 75 6c 20 |so has p|owerful |
|00000c80| 65 76 65 6e 74 2d 68 61 | 6e 64 6c 69 6e 67 20 61 |event-ha|ndling a|
|00000c90| 6e 64 20 6f 62 6a 65 63 | 74 2d 6f 72 69 65 6e 74 |nd objec|t-orient|
|00000ca0| 65 64 20 63 61 70 61 62 | 69 6c 69 74 69 65 73 2e |ed capab|ilities.|
|00000cb0| 0d 0a 20 20 46 75 6e 63 | 74 69 6f 6e 73 20 63 61 |.. Func|tions ca|
|00000cc0| 6e 20 62 65 20 64 65 66 | 69 6e 65 64 20 77 68 69 |n be def|ined whi|
|00000cd0| 63 68 20 72 65 73 70 6f | 6e 64 20 74 6f 20 65 78 |ch respo|nd to ex|
|00000ce0| 74 65 72 6e 61 6c 2c 20 | 69 6e 74 65 72 6e 61 6c |ternal, |internal|
|00000cf0| 2c 20 61 6e 64 20 75 73 | 65 72 0d 0a 20 20 64 65 |, and us|er.. de|
|00000d00| 66 69 6e 65 64 20 65 76 | 65 6e 74 73 2e 20 46 75 |fined ev|ents. Fu|
|00000d10| 6e 63 74 69 6f 6e 73 20 | 61 6e 64 20 76 61 72 69 |nctions |and vari|
|00000d20| 61 62 6c 65 73 20 63 61 | 6e 20 62 65 20 65 6e 63 |ables ca|n be enc|
|00000d30| 61 70 73 75 6c 61 74 65 | 64 20 69 6e 74 6f 0d 0a |apsulate|d into..|
|00000d40| 20 20 6f 62 6a 65 63 74 | 73 2c 20 61 6e 64 20 6f | object|s, and o|
|00000d50| 62 6a 65 63 74 73 20 63 | 61 6e 20 6f 72 67 61 6e |bjects c|an organ|
|00000d60| 69 7a 65 64 20 69 6e 74 | 6f 20 6f 62 6a 65 63 74 |ized int|o object|
|00000d70| 20 68 69 65 72 61 72 63 | 68 69 65 73 20 77 69 74 | hierarc|hies wit|
|00000d80| 68 0d 0a 20 20 69 6e 68 | 65 72 69 74 61 6e 63 65 |h.. inh|eritance|
|00000d90| 20 61 6e 64 20 6d 75 6c | 74 69 70 6c 65 20 69 6e | and mul|tiple in|
|00000da0| 68 65 72 69 74 61 6e 63 | 65 2e 20 49 6e 68 65 72 |heritanc|e. Inher|
|00000db0| 69 74 61 6e 63 65 20 68 | 69 65 72 61 72 63 68 69 |itance h|ierarchi|
|00000dc0| 65 73 20 63 61 6e 20 61 | 6c 73 6f 0d 0a 20 20 62 |es can a|lso.. b|
|00000dd0| 65 20 64 79 6e 61 6d 69 | 63 61 6c 6c 79 20 61 6c |e dynami|cally al|
|00000de0| 74 65 72 65 64 20 77 69 | 74 68 69 6e 20 61 20 6d |tered wi|thin a m|
|00000df0| 61 63 72 6f 2e 0d 0a 0d | 0a 20 20 54 6f 20 73 69 |acro....|. To si|
|00000e00| 6d 70 6c 69 66 79 20 6d | 61 63 72 6f 20 64 65 76 |mplify m|acro dev|
|00000e10| 65 6c 6f 70 6d 65 6e 74 | 2c 20 74 68 65 20 65 64 |elopment|, the ed|
|00000e20| 69 74 6f 72 20 69 73 20 | 61 6c 73 6f 20 63 6f 6e |itor is |also con|
|00000e30| 66 69 67 75 72 65 64 20 | 74 6f 0d 0a 20 20 70 72 |figured |to.. pr|
|00000e40| 6f 76 69 64 65 20 63 6f | 6d 70 69 6c 61 74 69 6f |ovide co|mpilatio|
|00000e50| 6e 20 73 75 70 70 6f 72 | 74 20 66 6f 72 20 69 74 |n suppor|t for it|
|00000e60| 73 20 6f 77 6e 20 6d 61 | 63 72 6f 20 6c 61 6e 67 |s own ma|cro lang|
|00000e70| 75 61 67 65 2e 20 4d 61 | 63 72 6f 20 73 6f 75 72 |uage. Ma|cro sour|
|00000e80| 63 65 0d 0a 20 20 63 6f | 64 65 20 63 61 6e 20 62 |ce.. co|de can b|
|00000e90| 65 20 63 6f 6d 70 69 6c | 65 64 20 61 6e 64 20 65 |e compil|ed and e|
|00000ea0| 78 65 63 75 74 65 64 20 | 77 69 74 68 69 6e 20 74 |xecuted |within t|
|00000eb0| 68 65 20 65 64 69 74 6f | 72 2e 20 49 66 20 63 6f |he edito|r. If co|
|00000ec0| 6d 70 69 6c 61 74 69 6f | 6e 0d 0a 20 20 65 72 72 |mpilatio|n.. err|
|00000ed0| 6f 72 73 20 61 72 65 20 | 66 6f 75 6e 64 2c 20 74 |ors are |found, t|
|00000ee0| 68 65 20 63 75 72 73 6f | 72 20 69 73 20 61 75 74 |he curso|r is aut|
|00000ef0| 6f 6d 61 74 69 63 61 6c | 6c 79 20 6d 6f 76 65 64 |omatical|ly moved|
|00000f00| 20 74 6f 20 74 68 65 20 | 61 70 70 72 6f 70 72 69 | to the |appropri|
|00000f10| 61 74 65 0d 0a 20 20 6c | 6f 63 61 74 69 6f 6e 20 |ate.. l|ocation |
|00000f20| 69 6e 20 74 68 65 20 73 | 6f 75 72 63 65 20 63 6f |in the s|ource co|
|00000f30| 64 65 20 66 6f 72 20 63 | 6f 72 72 65 63 74 69 6f |de for c|orrectio|
|00000f40| 6e 73 2e 0d 0a 0d 0a 0d | 0a 20 20 54 68 65 20 53 |ns......|. The S|
|00000f50| 79 6e 74 61 78 00 0d 0a | 20 20 c4 c4 c4 c4 c4 c4 |yntax...| ......|
|00000f60| c4 c4 c4 c4 0d 0a 20 20 | 54 68 65 20 6d 61 63 72 |...... |The macr|
|00000f70| 6f 20 6c 61 6e 67 75 61 | 67 65 20 73 79 6e 74 61 |o langua|ge synta|
|00000f80| 78 20 69 6e 63 6c 75 64 | 65 73 20 61 20 72 69 63 |x includ|es a ric|
|00000f90| 68 20 61 73 73 6f 72 74 | 6d 65 6e 74 20 6f 66 20 |h assort|ment of |
|00000fa0| 73 74 61 74 65 6d 65 6e | 74 73 2c 0d 0a 20 20 6f |statemen|ts,.. o|
|00000fb0| 70 65 72 61 74 6f 72 73 | 2c 20 61 6e 64 20 66 75 |perators|, and fu|
|00000fc0| 6e 63 74 69 6f 6e 73 20 | 77 68 69 63 68 20 63 61 |nctions |which ca|
|00000fd0| 6e 20 62 65 20 63 6f 6d | 62 69 6e 65 64 20 74 6f |n be com|bined to|
|00000fe0| 20 66 6f 72 6d 20 76 65 | 72 79 20 73 69 6d 70 6c | form ve|ry simpl|
|00000ff0| 65 20 6f 72 0d 0a 20 20 | 76 65 72 79 20 63 6f 6d |e or.. |very com|
|00001000| 70 6c 65 78 20 65 78 70 | 72 65 73 73 69 6f 6e 73 |plex exp|ressions|
|00001010| 2e 0d 0a 0d 0a 20 20 49 | 6e 20 64 65 73 69 67 6e |..... I|n design|
|00001020| 69 6e 67 20 74 68 65 20 | 6d 61 63 72 6f 20 6c 61 |ing the |macro la|
|00001030| 6e 67 75 61 67 65 20 73 | 79 6e 74 61 78 2c 20 65 |nguage s|yntax, e|
|00001040| 76 65 72 79 20 65 66 66 | 6f 72 74 20 77 61 73 20 |very eff|ort was |
|00001050| 6d 61 64 65 20 74 6f 0d | 0a 20 20 70 72 6f 76 69 |made to.|. provi|
|00001060| 64 65 20 61 6e 20 61 74 | 74 72 61 63 74 69 76 65 |de an at|tractive|
|00001070| 20 69 6e 74 65 72 66 61 | 63 65 20 74 6f 20 74 68 | interfa|ce to th|
|00001080| 65 20 65 64 69 74 6f 72 | 20 77 68 69 63 68 20 69 |e editor| which i|
|00001090| 73 20 62 6f 74 68 20 70 | 6f 77 65 72 66 75 6c 0d |s both p|owerful.|
|000010a0| 0a 20 20 61 6e 64 20 65 | 61 73 79 2d 74 6f 2d 75 |. and e|asy-to-u|
|000010b0| 73 65 2e 20 54 68 6f 73 | 65 20 77 68 6f 20 61 72 |se. Thos|e who ar|
|000010c0| 65 20 61 6c 72 65 61 64 | 79 20 66 61 6d 69 6c 69 |e alread|y famili|
|000010d0| 61 72 20 77 69 74 68 20 | 6f 74 68 65 72 20 70 72 |ar with |other pr|
|000010e0| 6f 67 72 61 6d 6d 69 6e | 67 0d 0a 20 20 6c 61 6e |ogrammin|g.. lan|
|000010f0| 67 75 61 67 65 73 20 77 | 69 6c 6c 20 66 69 6e 64 |guages w|ill find|
|00001100| 20 74 68 65 20 73 79 6e | 74 61 78 20 6f 66 20 41 | the syn|tax of A|
|00001110| 4d 4c 20 73 69 6d 69 6c | 61 72 20 74 6f 20 42 41 |ML simil|ar to BA|
|00001120| 53 49 43 20 6f 72 20 50 | 61 73 63 61 6c 2c 20 62 |SIC or P|ascal, b|
|00001130| 75 74 0d 0a 20 20 77 69 | 74 68 20 61 20 73 69 6d |ut.. wi|th a sim|
|00001140| 70 6c 65 72 20 66 75 6e | 63 74 69 6f 6e 20 63 61 |pler fun|ction ca|
|00001150| 6c 6c 20 73 79 6e 74 61 | 78 2e 0d 0a 0d 0a 20 20 |ll synta|x..... |
|00001160| 41 4d 4c 20 69 73 20 61 | 6c 73 6f 20 61 20 27 74 |AML is a|lso a 't|
|00001170| 79 70 65 6c 65 73 73 27 | 20 6c 61 6e 67 75 61 67 |ypeless'| languag|
|00001180| 65 2e 20 54 68 65 20 75 | 73 65 72 20 6e 65 65 64 |e. The u|ser need|
|00001190| 20 6e 6f 74 20 62 65 20 | 63 6f 6e 63 65 72 6e 65 | not be |concerne|
|000011a0| 64 20 77 69 74 68 0d 0a | 20 20 63 6f 6e 76 65 72 |d with..| conver|
|000011b0| 73 69 6f 6e 73 20 66 72 | 6f 6d 20 73 74 72 69 6e |sions fr|om strin|
|000011c0| 67 20 74 6f 20 6e 75 6d | 65 72 69 63 20 64 61 74 |g to num|eric dat|
|000011d0| 61 2c 20 6f 72 20 76 69 | 63 65 20 76 65 72 73 61 |a, or vi|ce versa|
|000011e0| 2c 20 61 6e 64 20 76 61 | 72 69 61 62 6c 65 0d 0a |, and va|riable..|
|000011f0| 20 20 64 65 63 6c 61 72 | 61 74 69 6f 6e 73 20 61 | declar|ations a|
|00001200| 72 65 20 75 73 75 61 6c | 6c 79 20 6e 6f 74 20 72 |re usual|ly not r|
|00001210| 65 71 75 69 72 65 64 2e | 0d 0a 0d 0a 0d 0a 20 20 |equired.|...... |
|00001220| 49 64 65 6e 74 69 66 69 | 65 72 73 00 0d 0a 20 20 |Identifi|ers... |
|00001230| c4 c4 c4 c4 c4 c4 c4 c4 | c4 c4 c4 0d 0a 20 20 49 |........|..... I|
|00001240| 64 65 6e 74 69 66 69 65 | 72 73 20 61 72 65 20 75 |dentifie|rs are u|
|00001250| 73 65 72 2d 64 65 66 69 | 6e 65 64 20 6e 61 6d 65 |ser-defi|ned name|
|00001260| 73 20 77 68 69 63 68 20 | 64 65 6e 6f 74 65 20 76 |s which |denote v|
|00001270| 61 72 69 61 62 6c 65 73 | 20 61 6e 64 0d 0a 20 20 |ariables| and.. |
|00001280| 66 75 6e 63 74 69 6f 6e | 73 2e 20 56 61 6c 69 64 |function|s. Valid|
|00001290| 20 69 64 65 6e 74 69 66 | 69 65 72 73 20 6d 61 79 | identif|iers may|
|000012a0| 20 62 65 20 63 6f 6d 70 | 6f 73 65 64 20 6f 66 20 | be comp|osed of |
|000012b0| 6c 65 74 74 65 72 73 20 | 28 61 2d 7a 20 61 6e 64 |letters |(a-z and|
|000012c0| 20 41 2d 5a 29 2c 0d 0a | 20 20 6e 75 6d 65 72 69 | A-Z),..| numeri|
|000012d0| 63 20 64 69 67 69 74 73 | 20 28 30 2d 39 29 2c 20 |c digits| (0-9), |
|000012e0| 75 6e 64 65 72 73 63 6f | 72 65 73 20 28 5f 29 2c |undersco|res (_),|
|000012f0| 20 71 75 65 73 74 69 6f | 6e 20 6d 61 72 6b 73 20 | questio|n marks |
|00001300| 28 3f 29 2c 20 61 6e 64 | 20 74 68 65 0d 0a 20 20 |(?), and| the.. |
|00001310| 63 68 61 72 61 63 74 65 | 72 20 28 23 29 2e 20 49 |characte|r (#). I|
|00001320| 64 65 6e 74 69 66 69 65 | 72 73 20 63 61 6e 6e 6f |dentifie|rs canno|
|00001330| 74 20 62 65 67 69 6e 20 | 77 69 74 68 20 61 20 6e |t begin |with a n|
|00001340| 75 6d 65 72 69 63 20 63 | 68 61 72 61 63 74 65 72 |umeric c|haracter|
|00001350| 2c 20 61 6e 64 0d 0a 20 | 20 61 72 65 20 61 6c 77 |, and.. | are alw|
|00001360| 61 79 73 20 63 61 73 65 | 20 73 65 6e 73 69 74 69 |ays case| sensiti|
|00001370| 76 65 2e 20 46 6f 72 20 | 65 78 61 6d 70 6c 65 3a |ve. For |example:|
|00001380| 0d 0a 0d 0a 20 20 54 68 | 65 73 65 20 69 64 65 6e |.... Th|ese iden|
|00001390| 74 69 66 69 65 72 73 20 | 61 72 65 20 76 61 6c 69 |tifiers |are vali|
|000013a0| 64 3a 0d 0a 20 20 20 20 | 61 62 63 0d 0a 20 20 20 |d:.. |abc.. |
|000013b0| 20 76 61 72 69 61 62 6c | 65 31 33 0d 0a 20 20 20 | variabl|e13.. |
|000013c0| 20 5f 64 6f 6e 65 3f 0d | 0a 0d 0a 20 20 54 68 65 | _done?.|... The|
|000013d0| 73 65 20 69 64 65 6e 74 | 69 66 69 65 72 73 20 61 |se ident|ifiers a|
|000013e0| 72 65 20 6e 6f 74 20 76 | 61 6c 69 64 3a 0d 0a 20 |re not v|alid:.. |
|000013f0| 20 20 20 31 32 74 77 65 | 6c 76 65 20 20 20 20 20 | 12twe|lve |
|00001400| 20 20 20 20 20 2f 2f 20 | 69 64 65 6e 74 69 66 69 | // |identifi|
|00001410| 65 72 73 20 6d 61 79 20 | 6e 6f 74 20 73 74 61 72 |ers may |not star|
|00001420| 74 20 77 69 74 68 20 6e | 75 6d 65 72 69 63 20 64 |t with n|umeric d|
|00001430| 69 67 69 74 0d 0a 20 20 | 20 20 62 61 64 20 76 61 |igit.. | bad va|
|00001440| 72 69 61 62 6c 65 20 20 | 20 20 20 20 2f 2f 20 69 |riable | // i|
|00001450| 64 65 6e 74 69 66 69 65 | 72 73 20 6d 61 79 20 6e |dentifie|rs may n|
|00001460| 6f 74 20 69 6e 63 6c 75 | 64 65 20 73 70 61 63 65 |ot inclu|de space|
|00001470| 73 0d 0a 20 20 20 20 76 | 61 72 69 61 62 6c 65 21 |s.. v|ariable!|
|00001480| 20 20 20 20 20 20 20 20 | 20 2f 2f 20 74 68 65 20 | | // the |
|00001490| 27 21 27 20 63 68 61 72 | 61 63 74 65 72 20 6d 61 |'!' char|acter ma|
|000014a0| 79 20 6e 6f 74 20 62 65 | 20 75 73 65 64 0d 0a 0d |y not be| used...|
|000014b0| 0a 0d 0a 20 20 52 65 73 | 65 72 76 65 64 20 57 6f |... Res|erved Wo|
|000014c0| 72 64 73 00 0d 0a 20 20 | c4 c4 c4 c4 c4 c4 c4 c4 |rds... |........|
|000014d0| c4 c4 c4 c4 c4 c4 0d 0a | 20 20 54 68 65 20 66 6f |........| The fo|
|000014e0| 6c 6c 6f 77 69 6e 67 20 | 72 65 73 65 72 76 65 64 |llowing |reserved|
|000014f0| 20 77 6f 72 64 73 20 61 | 72 65 20 75 73 65 64 20 | words a|re used |
|00001500| 62 79 20 74 68 65 20 6d | 61 63 72 6f 20 6c 61 6e |by the m|acro lan|
|00001510| 67 75 61 67 65 20 66 6f | 72 0d 0a 20 20 6b 65 79 |guage fo|r.. key|
|00001520| 77 6f 72 64 73 20 61 6e | 64 20 73 74 61 74 65 6d |words an|d statem|
|00001530| 65 6e 74 73 20 61 6e 64 | 20 63 61 6e 6e 6f 74 20 |ents and| cannot |
|00001540| 62 65 20 75 73 65 64 20 | 61 73 20 69 64 65 6e 74 |be used |as ident|
|00001550| 69 66 69 65 72 73 20 66 | 6f 72 0d 0a 20 20 75 73 |ifiers f|or.. us|
|00001560| 65 72 2d 64 65 66 69 6e | 65 64 20 76 61 72 69 61 |er-defin|ed varia|
|00001570| 62 6c 65 73 20 6f 72 20 | 66 75 6e 63 74 69 6f 6e |bles or |function|
|00001580| 73 3a 0d 0a 0d 0a 20 20 | 20 ff 61 6e 64 20 20 20 |s:.... | .and |
|00001590| 20 20 20 20 20 65 6c 73 | 65 69 66 20 20 20 20 20 | els|eif |
|000015a0| 69 74 65 6d 20 20 20 20 | 20 20 20 6e 6f 74 20 20 |item | not |
|000015b0| 20 20 20 20 20 20 73 65 | 74 20 20 20 20 20 20 20 | se|t |
|000015c0| 20 74 68 65 6e 20 ff 0d | 0a 20 20 20 ff 62 72 65 | then ..|. .bre|
|000015d0| 61 6b 20 20 20 20 20 20 | 65 6e 64 20 20 20 20 20 |ak |end |
|000015e0| 20 20 20 6b 65 79 20 20 | 20 20 20 20 20 20 6f 62 | key | ob|
|000015f0| 6a 65 63 74 20 20 20 20 | 20 73 65 74 6f 62 6a 20 |ject | setobj |
|00001600| 20 20 20 20 75 6e 74 69 | 6c ff 0d 0a 20 20 20 ff | unti|l... .|
|00001610| 63 61 73 65 20 20 20 20 | 20 20 20 66 6f 72 77 61 |case | forwa|
|00001620| 72 64 20 20 20 20 6b 65 | 79 77 6f 72 64 20 20 20 |rd ke|yword |
|00001630| 20 6f 72 20 20 20 20 20 | 20 20 20 20 73 65 74 78 | or | setx|
|00001640| 20 20 20 20 20 20 20 76 | 61 72 20 20 ff 0d 0a 20 | v|ar ... |
|00001650| 20 20 ff 64 61 74 61 62 | 75 66 20 20 20 20 66 75 | .datab|uf fu|
|00001660| 6e 63 74 69 6f 6e 20 20 | 20 6c 6f 6f 70 20 20 20 |nction | loop |
|00001670| 20 20 20 20 6f 74 68 65 | 72 77 69 73 65 20 20 73 | othe|rwise s|
|00001680| 65 74 78 66 75 6e 20 20 | 20 20 77 68 65 6e 20 ff |etxfun | when .|
|00001690| 0d 0a 20 20 20 ff 64 65 | 66 69 6e 65 20 20 20 20 |.. .de|fine |
|000016a0| 20 69 66 20 20 20 20 20 | 20 20 20 20 6d 65 6e 75 | if | menu|
|000016b0| 20 20 20 20 20 20 20 72 | 65 66 20 20 20 20 20 20 | r|ef |
|000016c0| 20 20 73 65 74 78 6f 62 | 6a 20 20 20 20 77 68 69 | setxob|j whi|
|000016d0| 6c 65 ff 0d 0a 20 20 20 | ff 64 6f 20 20 20 20 20 |le... |.do |
|000016e0| 20 20 20 20 69 66 3f 20 | 20 20 20 20 20 20 20 6d | if? | m|
|000016f0| 65 6e 75 62 61 72 20 20 | 20 20 72 65 70 65 61 74 |enubar | repeat|
|00001700| 20 20 20 20 20 73 68 6c | 20 20 20 20 20 20 20 20 | shl| |
|00001710| 20 20 20 20 20 ff 0d 0a | 20 20 20 ff 65 6c 73 65 | ...| .else|
|00001720| 20 20 20 20 20 20 20 69 | 6e 63 6c 75 64 65 20 20 | i|nclude |
|00001730| 20 20 6d 6f 64 20 20 20 | 20 20 20 20 20 72 65 74 | mod | ret|
|00001740| 75 72 6e 20 20 20 20 20 | 73 68 72 20 20 20 20 20 |urn |shr |
|00001750| 20 20 20 20 20 20 20 20 | ff 0d 0a 0d 0a 20 20 55 | |..... U|
|00001760| 6e 6c 69 6b 65 20 74 68 | 65 20 69 64 65 6e 74 69 |nlike th|e identi|
|00001770| 66 69 65 72 73 20 75 73 | 65 64 20 66 6f 72 20 76 |fiers us|ed for v|
|00001780| 61 72 69 61 62 6c 65 73 | 20 61 6e 64 20 66 75 6e |ariables| and fun|
|00001790| 63 74 69 6f 6e 73 2c 20 | 72 65 73 65 72 76 65 64 |ctions, |reserved|
|000017a0| 0d 0a 20 20 77 6f 72 64 | 73 20 6d 61 79 20 62 65 |.. word|s may be|
|000017b0| 20 65 6e 74 65 72 65 64 | 20 69 6e 20 6d 69 78 65 | entered| in mixe|
|000017c0| 64 20 63 61 73 65 2e 0d | 0a 0d 0a 0d 0a 20 20 53 |d case..|..... S|
|000017d0| 74 72 69 6e 67 73 00 0d | 0a 20 20 c4 c4 c4 c4 c4 |trings..|. .....|
|000017e0| c4 c4 0d 0a 20 20 41 20 | 73 74 72 69 6e 67 20 69 |.... A |string i|
|000017f0| 73 20 61 20 63 6f 6e 74 | 69 67 75 6f 75 73 20 73 |s a cont|iguous s|
|00001800| 65 71 75 65 6e 63 65 20 | 6f 66 20 63 68 61 72 61 |equence |of chara|
|00001810| 63 74 65 72 73 2c 20 75 | 70 20 74 6f 20 61 20 6d |cters, u|p to a m|
|00001820| 61 78 69 6d 75 6d 0d 0a | 20 20 6c 65 6e 67 74 68 |aximum..| length|
|00001830| 20 6f 66 20 31 36 30 30 | 30 20 63 68 61 72 61 63 | of 1600|0 charac|
|00001840| 74 65 72 73 2e 20 53 74 | 72 69 6e 67 20 63 6f 6e |ters. St|ring con|
|00001850| 73 74 61 6e 74 73 20 6d | 75 73 74 20 62 65 20 65 |stants m|ust be e|
|00001860| 6e 63 6c 6f 73 65 64 20 | 69 6e 0d 0a 20 20 65 69 |nclosed |in.. ei|
|00001870| 74 68 65 72 20 73 69 6e | 67 6c 65 20 71 75 6f 74 |ther sin|gle quot|
|00001880| 65 73 20 28 27 29 20 6f | 72 20 64 6f 75 62 6c 65 |es (') o|r double|
|00001890| 20 71 75 6f 74 65 73 20 | 28 22 29 20 61 6e 64 20 | quotes |(") and |
|000018a0| 74 68 65 20 73 74 61 72 | 74 69 6e 67 20 71 75 6f |the star|ting quo|
|000018b0| 74 65 0d 0a 20 20 63 68 | 61 72 61 63 74 65 72 20 |te.. ch|aracter |
|000018c0| 6d 75 73 74 20 6d 61 74 | 63 68 20 74 68 65 20 65 |must mat|ch the e|
|000018d0| 6e 64 69 6e 67 20 71 75 | 6f 74 65 20 63 68 61 72 |nding qu|ote char|
|000018e0| 61 63 74 65 72 2e 20 46 | 6f 72 20 65 78 61 6d 70 |acter. F|or examp|
|000018f0| 6c 65 3a 0d 0a 0d 0a 20 | 20 20 20 22 54 68 69 73 |le:.... | "This|
|00001900| 20 69 73 20 76 61 6c 69 | 64 20 73 74 72 69 6e 67 | is vali|d string|
|00001910| 22 0d 0a 20 20 20 20 27 | 54 68 69 73 20 69 73 20 |".. '|This is |
|00001920| 61 6c 73 6f 20 61 20 76 | 61 6c 69 64 20 73 74 72 |also a v|alid str|
|00001930| 69 6e 67 27 0d 0a 20 20 | 20 20 22 54 68 69 73 20 |ing'.. | "This |
|00001940| 69 73 20 27 4f 6b 27 22 | 0d 0a 20 20 20 20 27 54 |is 'Ok'"|.. 'T|
|00001950| 68 69 73 20 69 73 20 22 | 4f 6b 22 20 74 6f 6f 27 |his is "|Ok" too'|
|00001960| 0d 0a 0d 0a 20 20 20 20 | 22 54 68 69 73 20 69 73 |.... |"This is|
|00001970| 20 6e 6f 74 20 61 20 73 | 74 72 69 6e 67 27 0d 0a | not a s|tring'..|
|00001980| 20 20 20 20 20 20 20 2f | 2f 20 71 75 6f 74 65 73 | /|/ quotes|
|00001990| 20 64 6f 6e 27 74 20 6d | 61 74 63 68 0d 0a 0d 0a | don't m|atch....|
|000019a0| 20 20 41 20 73 74 72 69 | 6e 67 20 77 69 74 68 20 | A stri|ng with |
|000019b0| 6e 6f 20 63 68 61 72 61 | 63 74 65 72 73 20 69 73 |no chara|cters is|
|000019c0| 20 72 65 66 65 72 72 65 | 64 20 74 6f 20 61 73 20 | referre|d to as |
|000019d0| 27 74 68 65 20 6e 75 6c | 6c 20 73 74 72 69 6e 67 |'the nul|l string|
|000019e0| 27 3a 0d 0a 0d 0a 20 20 | 20 20 27 27 20 20 20 20 |':.... | '' |
|000019f0| 20 20 20 20 2f 2f 20 74 | 68 65 20 6e 75 6c 6c 20 | // t|he null |
|00001a00| 73 74 72 69 6e 67 0d 0a | 20 20 20 20 22 22 20 20 |string..| "" |
|00001a10| 20 20 20 20 20 20 2f 2f | 20 74 68 65 20 6e 75 6c | //| the nul|
|00001a20| 6c 20 73 74 72 69 6e 67 | 0d 0a 0d 0a 20 20 54 68 |l string|.... Th|
|00001a30| 65 20 62 61 63 6b 73 6c | 61 73 68 20 63 68 61 72 |e backsl|ash char|
|00001a40| 61 63 74 65 72 20 28 5c | 29 20 69 73 20 75 73 65 |acter (\|) is use|
|00001a50| 64 20 74 6f 20 69 6e 64 | 69 63 61 74 65 20 74 68 |d to ind|icate th|
|00001a60| 61 74 20 74 68 65 20 6e | 65 78 74 0d 0a 20 20 63 |at the n|ext.. c|
|00001a70| 68 61 72 61 63 74 65 72 | 20 69 6e 20 74 68 65 20 |haracter| in the |
|00001a80| 73 74 72 69 6e 67 20 69 | 73 20 74 6f 20 62 65 20 |string i|s to be |
|00001a90| 69 6e 74 65 72 70 72 65 | 74 65 64 20 6c 69 74 65 |interpre|ted lite|
|00001aa0| 72 61 6c 6c 79 2e 20 49 | 74 20 6d 61 79 20 62 65 |rally. I|t may be|
|00001ab0| 20 75 73 65 64 0d 0a 20 | 20 74 6f 20 65 6e 63 6c | used.. | to encl|
|00001ac0| 6f 73 65 20 71 75 6f 74 | 65 20 63 68 61 72 61 63 |ose quot|e charac|
|00001ad0| 74 65 72 73 20 28 61 6e | 64 20 74 68 65 20 6c 69 |ters (an|d the li|
|00001ae0| 74 65 72 61 6c 20 63 68 | 61 72 61 63 74 65 72 20 |teral ch|aracter |
|00001af0| 69 74 73 65 6c 66 29 20 | 69 6e 20 74 68 65 0d 0a |itself) |in the..|
|00001b00| 20 20 73 74 72 69 6e 67 | 2e 20 46 6f 72 20 65 78 | string|. For ex|
|00001b10| 61 6d 70 6c 65 3a 0d 0a | 0d 0a 20 20 20 20 27 5c |ample:..|.. '\|
|00001b20| 27 27 20 20 20 20 20 20 | 2f 2f 20 6f 6e 65 20 73 |'' |// one s|
|00001b30| 69 6e 67 6c 65 20 71 75 | 6f 74 65 0d 0a 20 20 20 |ingle qu|ote.. |
|00001b40| 20 22 5c 22 5c 22 27 22 | 20 20 20 2f 2f 20 74 77 | "\"\"'"| // tw|
|00001b50| 6f 20 64 6f 75 62 6c 65 | 20 71 75 6f 74 65 73 20 |o double| quotes |
|00001b60| 61 6e 64 20 61 20 73 69 | 6e 67 6c 65 20 71 75 6f |and a si|ngle quo|
|00001b70| 74 65 0d 0a 0d 0a 20 20 | 49 66 20 74 68 65 20 62 |te.... |If the b|
|00001b80| 61 63 6b 73 6c 61 73 68 | 20 63 68 61 72 61 63 74 |ackslash| charact|
|00001b90| 65 72 20 28 5c 29 20 69 | 73 20 75 73 65 64 20 69 |er (\) i|s used i|
|00001ba0| 6e 20 61 20 73 74 72 69 | 6e 67 2c 20 69 74 20 6d |n a stri|ng, it m|
|00001bb0| 75 73 74 20 62 65 0d 0a | 20 20 70 72 65 63 65 64 |ust be..| preced|
|00001bc0| 65 64 20 62 79 20 61 6e | 6f 74 68 65 72 20 62 61 |ed by an|other ba|
|00001bd0| 63 6b 73 6c 61 73 68 20 | 63 68 61 72 61 63 74 65 |ckslash |characte|
|00001be0| 72 3a 0d 0a 0d 0a 20 20 | 20 20 27 5c 5c 5c 5c 27 |r:.... | '\\\\'|
|00001bf0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2f 2f | | //|
|00001c00| 20 61 20 73 74 72 69 6e | 67 20 63 6f 6e 74 61 69 | a strin|g contai|
|00001c10| 6e 69 6e 67 20 74 77 6f | 20 62 61 63 6b 73 6c 61 |ning two| backsla|
|00001c20| 73 68 20 63 68 61 72 61 | 63 74 65 72 73 0d 0a 20 |sh chara|cters.. |
|00001c30| 20 20 20 22 43 3a 5c 5c | 54 58 54 5c 5c 41 42 43 | "C:\\|TXT\\ABC|
|00001c40| 2e 54 58 54 22 20 20 2f | 2f 20 61 20 66 75 6c 6c |.TXT" /|/ a full|
|00001c50| 79 20 71 75 61 6c 69 66 | 69 65 64 20 66 69 6c 65 |y qualif|ied file|
|00001c60| 6e 61 6d 65 0d 0a 0d 0a | 0d 0a 20 20 4e 75 6d 62 |name....|.. Numb|
|00001c70| 65 72 73 00 0d 0a 20 20 | c4 c4 c4 c4 c4 c4 c4 0d |ers... |........|
|00001c80| 0a 20 20 54 68 65 20 6d | 61 63 72 6f 20 6c 61 6e |. The m|acro lan|
|00001c90| 67 75 61 67 65 20 73 75 | 70 70 6f 72 74 73 20 62 |guage su|pports b|
|00001ca0| 6f 74 68 20 64 65 63 69 | 6d 61 6c 20 61 6e 64 20 |oth deci|mal and |
|00001cb0| 68 65 78 61 64 65 63 69 | 6d 61 6c 20 69 6e 74 65 |hexadeci|mal inte|
|00001cc0| 67 65 72 0d 0a 20 20 63 | 6f 6e 73 74 61 6e 74 73 |ger.. c|onstants|
|00001cd0| 2e 20 41 20 64 65 63 69 | 6d 61 6c 20 63 6f 6e 73 |. A deci|mal cons|
|00001ce0| 74 61 6e 74 20 69 73 20 | 61 20 63 6f 6e 74 69 67 |tant is |a contig|
|00001cf0| 75 6f 75 73 20 73 65 71 | 75 65 6e 63 65 20 6f 66 |uous seq|uence of|
|00001d00| 20 6e 75 6d 65 72 69 63 | 0d 0a 20 20 64 69 67 69 | numeric|.. digi|
|00001d10| 74 73 2e 20 41 20 68 65 | 78 61 64 65 63 69 6d 61 |ts. A he|xadecima|
|00001d20| 6c 20 63 6f 6e 73 74 61 | 6e 74 20 69 73 20 63 6f |l consta|nt is co|
|00001d30| 6e 74 69 67 75 6f 75 73 | 20 73 65 71 75 65 6e 63 |ntiguous| sequenc|
|00001d40| 65 20 6f 66 20 6e 75 6d | 65 72 69 63 0d 0a 20 20 |e of num|eric.. |
|00001d50| 64 69 67 69 74 73 20 6f | 72 20 74 68 65 20 6c 65 |digits o|r the le|
|00001d60| 74 74 65 72 73 20 41 20 | 74 68 72 6f 75 67 68 20 |tters A |through |
|00001d70| 46 20 66 6f 6c 6c 6f 77 | 65 64 20 62 79 20 74 68 |F follow|ed by th|
|00001d80| 65 20 6c 65 74 74 65 72 | 20 27 68 27 20 28 74 68 |e letter| 'h' (th|
|00001d90| 65 0d 0a 20 20 63 68 61 | 72 61 63 74 65 72 73 20 |e.. cha|racters |
|00001da0| 41 20 74 68 72 6f 75 67 | 68 20 46 20 61 6e 64 20 |A throug|h F and |
|00001db0| 27 68 27 20 6d 61 79 20 | 62 65 20 69 6e 20 6d 69 |'h' may |be in mi|
|00001dc0| 78 65 64 20 63 61 73 65 | 29 2e 20 42 6f 74 68 20 |xed case|). Both |
|00001dd0| 64 65 63 69 6d 61 6c 20 | 61 6e 64 0d 0a 20 20 68 |decimal |and.. h|
|00001de0| 65 78 61 64 65 63 69 6d | 61 6c 20 63 6f 6e 73 74 |exadecim|al const|
|00001df0| 61 6e 74 73 20 6d 75 73 | 74 20 62 65 67 69 6e 20 |ants mus|t begin |
|00001e00| 77 69 74 68 20 61 20 6e | 75 6d 65 72 69 63 20 64 |with a n|umeric d|
|00001e10| 69 67 69 74 2e 20 46 6f | 72 20 65 78 61 6d 70 6c |igit. Fo|r exampl|
|00001e20| 65 3a 0d 0a 0d 0a 20 20 | 20 20 32 20 20 20 37 32 |e:.... | 2 72|
|00001e30| 20 20 20 31 32 33 34 35 | 36 37 20 20 20 20 20 2f | 12345|67 /|
|00001e40| 2f 20 76 61 6c 69 64 20 | 64 65 63 69 6d 61 6c 20 |/ valid |decimal |
|00001e50| 6e 75 6d 62 65 72 73 0d | 0a 20 20 20 20 30 68 20 |numbers.|. 0h |
|00001e60| 20 32 30 68 20 20 30 44 | 68 20 20 30 66 66 48 20 | 20h 0D|h 0ffH |
|00001e70| 20 20 2f 2f 20 76 61 6c | 69 64 20 68 65 78 61 64 | // val|id hexad|
|00001e80| 65 63 69 6d 61 6c 20 6e | 75 6d 62 65 72 73 0d 0a |ecimal n|umbers..|
|00001e90| 0d 0a 20 20 20 20 66 66 | 68 20 20 20 20 20 20 20 |.. ff|h |
|00001ea0| 20 20 20 20 20 20 20 20 | 20 20 20 2f 2f 20 69 6e | | // in|
|00001eb0| 76 61 6c 69 64 20 2d 20 | 6d 75 73 74 20 62 65 67 |valid - |must beg|
|00001ec0| 69 6e 20 77 69 74 68 20 | 61 20 6e 75 6d 65 72 69 |in with |a numeri|
|00001ed0| 63 20 64 69 67 69 74 0d | 0a 0d 0a 20 20 41 6c 6c |c digit.|... All|
|00001ee0| 20 6e 75 6d 62 65 72 73 | 20 6d 75 73 74 20 62 65 | numbers| must be|
|00001ef0| 20 77 69 74 68 69 6e 20 | 74 68 65 20 72 61 6e 67 | within |the rang|
|00001f00| 65 20 2d 32 2c 31 34 37 | 2c 34 38 33 2c 36 34 38 |e -2,147|,483,648|
|00001f10| 20 74 6f 20 32 2c 31 34 | 37 2c 34 38 33 2c 36 34 | to 2,14|7,483,64|
|00001f20| 37 0d 0a 20 20 61 6e 64 | 20 6d 75 73 74 20 62 65 |7.. and| must be|
|00001f30| 20 69 6e 74 65 67 65 72 | 73 2e 0d 0a 0d 0a 0d 0a | integer|s.......|
|00001f40| 20 20 53 70 61 63 65 73 | 0d 0a 20 20 c4 c4 c4 c4 | Spaces|.. ....|
|00001f50| c4 c4 0d 0a 20 20 54 6f | 20 69 6d 70 72 6f 76 65 |.... To| improve|
|00001f60| 20 72 65 61 64 61 62 69 | 6c 69 74 79 2c 20 73 70 | readabi|lity, sp|
|00001f70| 61 63 65 73 20 61 6e 64 | 20 6c 69 6e 65 73 20 6d |aces and| lines m|
|00001f80| 61 6e 79 20 62 65 20 69 | 6e 73 65 72 74 65 64 20 |any be i|nserted |
|00001f90| 61 6e 79 77 68 65 72 65 | 0d 0a 20 20 77 69 74 68 |anywhere|.. with|
|00001fa0| 69 6e 20 79 6f 75 72 20 | 6d 61 63 72 6f 20 73 6f |in your |macro so|
|00001fb0| 75 72 63 65 20 63 6f 64 | 65 2c 20 61 73 20 6c 6f |urce cod|e, as lo|
|00001fc0| 6e 67 20 61 73 20 74 68 | 65 79 20 61 72 65 20 6e |ng as th|ey are n|
|00001fd0| 6f 74 20 69 6e 73 65 72 | 74 65 64 20 77 69 74 68 |ot inser|ted with|
|00001fe0| 69 6e 0d 0a 20 20 72 65 | 73 65 72 76 65 64 20 77 |in.. re|served w|
|00001ff0| 6f 72 64 73 2c 20 69 64 | 65 6e 74 69 66 69 65 72 |ords, id|entifier|
|00002000| 73 2c 20 6d 75 6c 74 69 | 2d 63 68 61 72 61 63 74 |s, multi|-charact|
|00002010| 65 72 20 6f 70 65 72 61 | 74 6f 72 73 2c 20 73 74 |er opera|tors, st|
|00002020| 72 69 6e 67 73 2c 20 6f | 72 0d 0a 20 20 6e 75 6d |rings, o|r.. num|
|00002030| 62 65 72 73 2e 20 46 6f | 72 20 65 78 61 6d 70 6c |bers. Fo|r exampl|
|00002040| 65 3a 0d 0a 0d 0a 20 20 | 20 20 61 3d 32 20 62 3d |e:.... | a=2 b=|
|00002050| 22 61 20 69 73 20 74 77 | 6f 22 ff 69 66 ff 61 3d |"a is tw|o".if.a=|
|00002060| 3d 32 ff 74 68 65 6e ff | 73 61 79 20 62 ff 65 6e |=2.then.|say b.en|
|00002070| 64 ff 0d 0a 0d 0a 20 20 | 63 6f 75 6c 64 20 62 65 |d..... |could be|
|00002080| 20 72 65 77 72 69 74 74 | 65 6e 20 61 73 3a 0d 0a | rewritt|en as:..|
|00002090| 0d 0a 20 20 20 20 61 20 | 3d 20 32 0d 0a 20 20 20 |.. a |= 2.. |
|000020a0| 20 62 20 3d 20 22 61 20 | 69 73 20 74 77 6f 22 0d | b = "a |is two".|
|000020b0| 0a 0d 0a 20 20 20 ff 69 | 66 ff 61 20 3d 3d 20 32 |... .i|f.a == 2|
|000020c0| ff 74 68 65 6e ff 0d 0a | 20 20 20 20 20 20 73 61 |.then...| sa|
|000020d0| 79 20 62 0d 0a 20 20 20 | ff 65 6e 64 ff 0d 0a 0d |y b.. |.end....|
|000020e0| 0a 0d 0a 20 20 43 6f 6d | 6d 65 6e 74 73 00 0d 0a |... Com|ments...|
|000020f0| 20 20 c4 c4 c4 c4 c4 c4 | c4 c4 0d 0a 20 20 43 6f | ......|.... Co|
|00002100| 6d 6d 65 6e 74 73 20 63 | 61 6e 20 6d 61 6b 65 20 |mments c|an make |
|00002110| 79 6f 75 72 20 73 6f 75 | 72 63 65 20 63 6f 64 65 |your sou|rce code|
|00002120| 20 6d 75 63 68 20 6d 6f | 72 65 20 64 65 73 63 72 | much mo|re descr|
|00002130| 69 70 74 69 76 65 20 61 | 6e 64 20 72 65 61 64 61 |iptive a|nd reada|
|00002140| 62 6c 65 2e 0d 0a 20 20 | 41 4d 4c 20 73 75 70 70 |ble... |AML supp|
|00002150| 6f 72 74 73 20 62 6f 74 | 68 20 73 69 6e 67 6c 65 |orts bot|h single|
|00002160| 2d 6c 69 6e 65 20 61 6e | 64 20 6d 75 6c 74 69 2d |-line an|d multi-|
|00002170| 6c 69 6e 65 20 63 6f 6d | 6d 65 6e 74 73 2e 0d 0a |line com|ments...|
|00002180| 0d 0a 20 20 54 6f 20 70 | 6c 61 63 65 20 61 20 63 |.. To p|lace a c|
|00002190| 6f 6d 6d 65 6e 74 20 61 | 74 20 74 68 65 20 65 6e |omment a|t the en|
|000021a0| 64 20 6f 66 20 61 20 73 | 69 6e 67 6c 65 20 6c 69 |d of a s|ingle li|
|000021b0| 6e 65 2c 20 75 73 65 20 | 74 68 65 20 73 69 6e 67 |ne, use |the sing|
|000021c0| 6c 65 2d 6c 69 6e 65 0d | 0a 20 20 63 6f 6d 6d 65 |le-line.|. comme|
|000021d0| 6e 74 20 64 65 6c 69 6d | 69 74 65 72 20 27 2f 2f |nt delim|iter '//|
|000021e0| 27 2e 20 49 6e 20 61 20 | 73 69 6e 67 6c 65 20 6c |'. In a |single l|
|000021f0| 69 6e 65 20 63 6f 6d 6d | 65 6e 74 2c 20 61 6e 79 |ine comm|ent, any|
|00002200| 20 63 68 61 72 61 63 74 | 65 72 73 0d 0a 20 20 6c | charact|ers.. l|
|00002210| 6f 63 61 74 65 64 20 62 | 65 74 77 65 65 6e 20 74 |ocated b|etween t|
|00002220| 68 65 20 64 65 6c 69 6d | 69 74 65 72 20 27 2f 2f |he delim|iter '//|
|00002230| 27 20 61 6e 64 20 74 68 | 65 20 65 6e 64 20 6f 66 |' and th|e end of|
|00002240| 20 74 68 65 20 6c 69 6e | 65 20 77 69 6c 6c 20 62 | the lin|e will b|
|00002250| 65 0d 0a 20 20 69 67 6e | 6f 72 65 64 2e 20 46 6f |e.. ign|ored. Fo|
|00002260| 72 20 65 78 61 6d 70 6c | 65 3a 0d 0a 0d 0a 20 20 |r exampl|e:.... |
|00002270| 20 20 78 20 3d 20 32 20 | 20 20 20 20 20 20 20 2f | x = 2 | /|
|00002280| 2f 20 74 68 69 73 20 69 | 73 20 61 20 73 69 6e 67 |/ this i|s a sing|
|00002290| 6c 65 20 6c 69 6e 65 20 | 63 6f 6d 6d 65 6e 74 0d |le line |comment.|
|000022a0| 0a 0d 0a 20 20 20 20 2f | 2f 20 74 68 69 73 20 69 |... /|/ this i|
|000022b0| 73 20 61 6e 6f 74 68 65 | 72 20 73 69 6e 67 6c 65 |s anothe|r single|
|000022c0| 20 6c 69 6e 65 20 63 6f | 6d 6d 65 6e 74 0d 0a 20 | line co|mment.. |
|000022d0| 20 20 20 79 20 3d 20 33 | 0d 0a 0d 0a 20 20 4d 75 | y = 3|.... Mu|
|000022e0| 6c 74 69 2d 6c 69 6e 65 | 20 63 6f 6d 6d 65 6e 74 |lti-line| comment|
|000022f0| 73 20 63 61 6e 20 73 70 | 61 6e 20 61 6e 79 20 6e |s can sp|an any n|
|00002300| 75 6d 62 65 72 20 6f 66 | 20 6c 69 6e 65 73 2e 20 |umber of| lines. |
|00002310| 46 6f 72 20 6d 75 6c 74 | 69 2d 6c 69 6e 65 0d 0a |For mult|i-line..|
|00002320| 20 20 63 6f 6d 6d 65 6e | 74 73 2c 20 61 6e 79 20 | commen|ts, any |
|00002330| 63 68 61 72 61 63 74 65 | 72 73 20 6c 6f 63 61 74 |characte|rs locat|
|00002340| 65 64 20 62 65 74 77 65 | 65 6e 20 74 68 65 20 63 |ed betwe|en the c|
|00002350| 6f 6d 6d 65 6e 74 20 64 | 65 6c 69 6d 69 74 65 72 |omment d|elimiter|
|00002360| 73 20 27 2f 2a 27 0d 0a | 20 20 61 6e 64 20 27 2a |s '/*'..| and '*|
|00002370| 2f 27 20 61 72 65 20 69 | 67 6e 6f 72 65 64 2e 20 |/' are i|gnored. |
|00002380| 46 6f 72 20 65 78 61 6d | 70 6c 65 3a 0d 0a 0d 0a |For exam|ple:....|
|00002390| 20 20 20 20 78 20 3d 20 | 32 20 20 2f 2a 20 74 68 | x = |2 /* th|
|000023a0| 69 73 20 69 73 20 6d 75 | 6c 74 69 2d 6c 69 6e 65 |is is mu|lti-line|
|000023b0| 20 63 6f 6d 6d 65 6e 74 | 20 2a 2f 20 20 79 20 3d | comment| */ y =|
|000023c0| 20 33 0d 0a 0d 0a 20 20 | 20 20 2f 2a 20 74 68 69 | 3.... | /* thi|
|000023d0| 73 20 69 73 0d 0a 20 20 | 20 20 20 20 20 61 6e 6f |s is.. | ano|
|000023e0| 74 68 65 72 0d 0a 20 20 | 20 20 20 20 20 6d 75 6c |ther.. | mul|
|000023f0| 74 69 2d 6c 69 6e 65 0d | 0a 20 20 20 20 20 20 20 |ti-line.|. |
|00002400| 63 6f 6d 6d 65 6e 74 20 | 2a 2f 0d 0a 20 20 20 20 |comment |*/.. |
|00002410| 79 20 3d 20 33 0d 0a 0d | 0a 20 20 4d 75 6c 74 69 |y = 3...|. Multi|
|00002420| 2d 6c 69 6e 65 20 63 6f | 6d 6d 65 6e 74 73 20 63 |-line co|mments c|
|00002430| 61 6e 6e 6f 74 20 62 65 | 20 6e 65 73 74 65 64 2e |annot be| nested.|
|00002440| 0d 0a 0d 0a 0d 0a 20 20 | 56 61 72 69 61 62 6c 65 |...... |Variable|
|00002450| 73 00 0d 0a 20 20 c4 c4 | c4 c4 c4 c4 c4 c4 c4 0d |s... ..|........|
|00002460| 0a 20 20 41 20 76 61 72 | 69 61 62 6c 65 20 69 73 |. A var|iable is|
|00002470| 20 61 6e 20 69 64 65 6e | 74 69 66 69 65 72 20 77 | an iden|tifier w|
|00002480| 68 69 63 68 20 69 73 20 | 61 73 73 6f 63 69 61 74 |hich is |associat|
|00002490| 65 64 20 77 69 74 68 20 | 61 20 76 61 6c 75 65 20 |ed with |a value |
|000024a0| 74 68 61 74 20 63 61 6e | 0d 0a 20 20 62 65 20 63 |that can|.. be c|
|000024b0| 68 61 6e 67 65 64 20 64 | 75 72 69 6e 67 20 65 78 |hanged d|uring ex|
|000024c0| 65 63 75 74 69 6f 6e 2e | 20 53 69 6e 63 65 20 41 |ecution.| Since A|
|000024d0| 4d 4c 20 69 73 20 74 79 | 70 65 6c 65 73 73 2c 20 |ML is ty|peless, |
|000024e0| 76 61 72 69 61 62 6c 65 | 73 20 64 6f 20 6e 6f 74 |variable|s do not|
|000024f0| 0d 0a 20 20 6e 65 65 64 | 20 74 6f 20 62 65 20 64 |.. need| to be d|
|00002500| 65 66 69 6e 65 64 20 77 | 69 74 68 20 64 61 74 61 |efined w|ith data|
|00002510| 20 74 79 70 65 73 20 73 | 75 63 68 20 61 73 20 27 | types s|uch as '|
|00002520| 6e 75 6d 65 72 69 63 27 | 2c 20 27 63 68 61 72 61 |numeric'|, 'chara|
|00002530| 63 74 65 72 27 2c 20 6f | 72 0d 0a 20 20 27 73 74 |cter', o|r.. 'st|
|00002540| 72 69 6e 67 27 2e 20 54 | 68 65 20 6d 61 63 72 6f |ring'. T|he macro|
|00002550| 20 6c 61 6e 67 75 61 67 | 65 20 63 6f 6d 70 69 6c | languag|e compil|
|00002560| 65 72 20 61 6e 64 20 69 | 6e 74 65 72 70 72 65 74 |er and i|nterpret|
|00002570| 65 72 20 77 69 6c 6c 0d | 0a 20 20 61 75 74 6f 6d |er will.|. autom|
|00002580| 61 74 69 63 61 6c 6c 79 | 20 68 61 6e 64 6c 65 20 |atically| handle |
|00002590| 74 68 65 73 65 20 64 61 | 74 61 20 74 79 70 65 73 |these da|ta types|
|000025a0| 20 69 6e 74 65 72 6e 61 | 6c 6c 79 2c 20 62 61 73 | interna|lly, bas|
|000025b0| 65 64 20 6f 6e 20 74 68 | 65 20 75 73 61 67 65 0d |ed on th|e usage.|
|000025c0| 0a 20 20 6f 66 20 74 68 | 65 20 76 61 72 69 61 62 |. of th|e variab|
|000025d0| 6c 65 2e 0d 0a 0d 0a 20 | 20 56 61 72 69 61 62 6c |le..... | Variabl|
|000025e0| 65 73 20 66 61 6c 6c 20 | 69 6e 74 6f 20 74 68 72 |es fall |into thr|
|000025f0| 65 65 20 63 61 74 65 67 | 6f 72 69 65 73 3a 0d 0a |ee categ|ories:..|
|00002600| 0d 0a 20 20 4c 6f 63 61 | 6c 20 76 61 72 69 61 62 |.. Loca|l variab|
|00002610| 6c 65 73 3a 0d 0a 20 20 | 20 20 4c 6f 63 61 6c 20 |les:.. | Local |
|00002620| 76 61 72 69 61 62 6c 65 | 73 20 61 72 65 20 64 65 |variable|s are de|
|00002630| 66 69 6e 65 64 20 6f 6e | 6c 79 20 77 69 74 68 69 |fined on|ly withi|
|00002640| 6e 20 74 68 65 20 73 63 | 6f 70 65 20 6f 66 20 61 |n the sc|ope of a|
|00002650| 20 66 75 6e 63 74 69 6f | 6e 0d 0a 20 20 20 20 64 | functio|n.. d|
|00002660| 65 66 69 6e 69 74 69 6f | 6e 20 61 6e 64 20 6f 6e |efinitio|n and on|
|00002670| 6c 79 20 68 61 76 65 20 | 76 61 6c 75 65 73 20 77 |ly have |values w|
|00002680| 68 69 6c 65 20 74 68 65 | 20 66 75 6e 63 74 69 6f |hile the| functio|
|00002690| 6e 20 69 73 20 65 78 65 | 63 75 74 69 6e 67 2e 0d |n is exe|cuting..|
|000026a0| 0a 20 20 20 20 4c 6f 63 | 61 6c 20 76 61 72 69 61 |. Loc|al varia|
|000026b0| 62 6c 65 73 20 63 61 6e | 20 6f 6e 6c 79 20 62 65 |bles can| only be|
|000026c0| 20 72 65 66 65 72 65 6e | 63 65 64 20 61 66 74 65 | referen|ced afte|
|000026d0| 72 20 74 68 65 79 20 61 | 72 65 20 64 65 66 69 6e |r they a|re defin|
|000026e0| 65 64 20 61 6e 64 0d 0a | 20 20 20 20 6f 6e 6c 79 |ed and..| only|
|000026f0| 20 66 72 6f 6d 20 77 69 | 74 68 69 6e 20 74 68 65 | from wi|thin the|
|00002700| 20 66 75 6e 63 74 69 6f | 6e 20 69 6e 20 77 68 69 | functio|n in whi|
|00002710| 63 68 20 74 68 65 79 20 | 61 72 65 20 64 65 66 69 |ch they |are defi|
|00002720| 6e 65 64 2e 20 46 6f 72 | 0d 0a 20 20 20 20 65 78 |ned. For|.. ex|
|00002730| 61 6d 70 6c 65 3a 0d 0a | 20 20 20 20 20 20 20 20 |ample:..| |
|00002740| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002750| 2f 2f 20 76 61 72 69 61 | 62 6c 65 20 27 61 27 20 |// varia|ble 'a' |
|00002760| 69 73 20 6e 6f 74 20 64 | 65 66 69 6e 65 64 20 68 |is not d|efined h|
|00002770| 65 72 65 0d 0a 20 20 20 | 20 20 ff 66 75 6e 63 74 |ere.. | .funct|
|00002780| 69 6f 6e ff 78 79 7a 0d | 0a 20 20 20 20 20 20 20 |ion.xyz.|. |
|00002790| 20 61 20 3d 20 31 20 20 | 20 20 20 20 20 20 20 20 | a = 1 | |
|000027a0| 20 2f 2f 20 76 61 72 69 | 61 62 6c 65 20 27 61 27 | // vari|able 'a'|
|000027b0| 20 69 73 20 6c 6f 63 61 | 6c 20 74 6f 20 66 75 6e | is loca|l to fun|
|000027c0| 63 74 69 6f 6e 20 27 78 | 79 7a 27 0d 0a 20 20 20 |ction 'x|yz'.. |
|000027d0| 20 20 ff 65 6e 64 ff 0d | 0a 20 20 20 20 20 20 20 | .end..|. |
|000027e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000027f0| 20 2f 2f 20 76 61 72 69 | 61 62 6c 65 20 27 61 27 | // vari|able 'a'|
|00002800| 20 69 73 20 6e 6f 74 20 | 64 65 66 69 6e 65 64 20 | is not |defined |
|00002810| 68 65 72 65 0d 0a 0d 0a | 20 20 47 6c 6f 62 61 6c |here....| Global|
|00002820| 20 76 61 72 69 61 62 6c | 65 73 3a 0d 0a 20 20 20 | variabl|es:.. |
|00002830| 20 47 6c 6f 62 61 6c 20 | 76 61 72 69 61 62 6c 65 | Global |variable|
|00002840| 73 20 61 72 65 20 64 65 | 66 69 6e 65 64 20 6f 75 |s are de|fined ou|
|00002850| 74 73 69 64 65 20 74 68 | 65 20 73 63 6f 70 65 20 |tside th|e scope |
|00002860| 6f 66 20 61 6e 79 20 66 | 75 6e 63 74 69 6f 6e 0d |of any f|unction.|
|00002870| 0a 20 20 20 20 64 65 66 | 69 6e 69 74 69 6f 6e 20 |. def|inition |
|00002880| 61 6e 64 20 6f 6e 6c 79 | 20 68 61 76 65 20 76 61 |and only| have va|
|00002890| 6c 75 65 73 20 77 68 69 | 6c 65 20 74 68 65 20 6d |lues whi|le the m|
|000028a0| 61 63 72 6f 20 66 69 6c | 65 20 69 6e 20 77 68 69 |acro fil|e in whi|
|000028b0| 63 68 20 74 68 65 79 0d | 0a 20 20 20 20 61 72 65 |ch they.|. are|
|000028c0| 20 63 6f 6e 74 61 69 6e | 65 64 20 69 73 20 65 78 | contain|ed is ex|
|000028d0| 65 63 75 74 69 6e 67 2e | 20 47 6c 6f 62 61 6c 20 |ecuting.| Global |
|000028e0| 76 61 72 69 61 62 6c 65 | 73 20 63 61 6e 20 6f 6e |variable|s can on|
|000028f0| 6c 79 20 62 65 20 72 65 | 66 65 72 65 6e 63 65 64 |ly be re|ferenced|
|00002900| 0d 0a 20 20 20 20 61 66 | 74 65 72 20 74 68 65 79 |.. af|ter they|
|00002910| 20 61 72 65 20 64 65 66 | 69 6e 65 64 20 61 6e 64 | are def|ined and|
|00002920| 20 6f 6e 6c 79 20 66 72 | 6f 6d 20 77 69 74 68 69 | only fr|om withi|
|00002930| 6e 20 74 68 65 20 6d 61 | 63 72 6f 20 73 6f 75 72 |n the ma|cro sour|
|00002940| 63 65 20 66 69 6c 65 20 | 69 6e 0d 0a 20 20 20 20 |ce file |in.. |
|00002950| 77 68 69 63 68 20 74 68 | 65 79 20 61 72 65 20 64 |which th|ey are d|
|00002960| 65 66 69 6e 65 64 2e 0d | 0a 0d 0a 20 20 20 20 47 |efined..|... G|
|00002970| 6c 6f 62 61 6c 20 76 61 | 72 69 61 62 6c 65 73 20 |lobal va|riables |
|00002980| 63 61 6e 20 62 65 20 72 | 65 66 65 72 65 6e 63 65 |can be r|eference|
|00002990| 64 20 66 72 6f 6d 20 69 | 6e 73 69 64 65 20 6f 72 |d from i|nside or|
|000029a0| 20 6f 75 74 73 69 64 65 | 20 74 68 65 20 73 63 6f | outside| the sco|
|000029b0| 70 65 0d 0a 20 20 20 20 | 6f 66 20 61 20 66 75 6e |pe.. |of a fun|
|000029c0| 63 74 69 6f 6e 20 64 65 | 66 69 6e 69 74 69 6f 6e |ction de|finition|
|000029d0| 2e 20 46 6f 72 20 65 78 | 61 6d 70 6c 65 3a 0d 0a |. For ex|ample:..|
|000029e0| 0d 0a 20 20 20 20 20 20 | 67 20 3d 20 32 20 20 20 |.. |g = 2 |
|000029f0| 20 20 20 20 20 20 20 20 | 20 20 2f 2f 20 27 67 27 | | // 'g'|
|00002a00| 20 69 73 20 61 20 67 6c | 6f 62 61 6c 20 76 61 72 | is a gl|obal var|
|00002a10| 69 61 62 6c 65 0d 0a 20 | 20 20 20 20 ff 66 75 6e |iable.. | .fun|
|00002a20| 63 74 69 6f 6e ff 78 79 | 7a 0d 0a 20 20 20 20 20 |ction.xy|z.. |
|00002a30| 20 20 20 61 20 3d 20 67 | 20 20 20 20 20 20 20 20 | a = g| |
|00002a40| 20 20 20 2f 2f 20 27 67 | 27 20 69 73 20 64 65 66 | // 'g|' is def|
|00002a50| 69 6e 65 64 20 68 65 72 | 65 2c 20 27 61 27 20 69 |ined her|e, 'a' i|
|00002a60| 73 20 6c 6f 63 61 6c 0d | 0a 20 20 20 20 20 ff 65 |s local.|. .e|
|00002a70| 6e 64 ff 0d 0a 20 20 20 | 20 20 20 67 20 3d 20 33 |nd... | g = 3|
|00002a80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2f 2f 20 | | // |
|00002a90| 27 67 27 20 69 73 20 64 | 65 66 69 6e 65 64 20 68 |'g' is d|efined h|
|00002aa0| 65 72 65 0d 0a 0d 0a 20 | 20 20 20 49 66 20 61 20 |ere.... | If a |
|00002ab0| 72 65 66 65 72 65 6e 63 | 65 20 69 73 20 6d 61 64 |referenc|e is mad|
|00002ac0| 65 20 74 6f 20 61 20 76 | 61 72 69 61 62 6c 65 20 |e to a v|ariable |
|00002ad0| 66 72 6f 6d 20 77 69 74 | 68 69 6e 20 61 20 66 75 |from wit|hin a fu|
|00002ae0| 6e 63 74 69 6f 6e 20 61 | 6e 64 20 74 68 65 0d 0a |nction a|nd the..|
|00002af0| 20 20 20 20 76 61 72 69 | 61 62 6c 65 20 6e 61 6d | vari|able nam|
|00002b00| 65 20 72 65 66 65 72 73 | 20 74 6f 20 62 6f 74 68 |e refers| to both|
|00002b10| 20 61 20 6c 6f 63 61 6c | 20 61 6e 64 20 61 20 67 | a local| and a g|
|00002b20| 6c 6f 62 61 6c 20 76 61 | 72 69 61 62 6c 65 2c 20 |lobal va|riable, |
|00002b30| 74 68 65 6e 20 74 68 65 | 0d 0a 20 20 20 20 6c 6f |then the|.. lo|
|00002b40| 63 61 6c 20 76 61 72 69 | 61 62 6c 65 20 61 6c 77 |cal vari|able alw|
|00002b50| 61 79 73 20 74 61 6b 65 | 73 20 70 72 65 63 65 64 |ays take|s preced|
|00002b60| 65 6e 63 65 2e 0d 0a 0d | 0a 20 20 4f 62 6a 65 63 |ence....|. Objec|
|00002b70| 74 20 76 61 72 69 61 62 | 6c 65 73 3a 0d 0a 20 20 |t variab|les:.. |
|00002b80| 20 20 4f 62 6a 65 63 74 | 20 76 61 72 69 61 62 6c | Object| variabl|
|00002b90| 65 73 20 61 72 65 20 64 | 65 66 69 6e 65 64 20 61 |es are d|efined a|
|00002ba0| 73 20 74 68 65 79 20 61 | 72 65 20 75 73 65 64 20 |s they a|re used |
|00002bb0| 66 72 6f 6d 20 61 6e 79 | 20 6c 6f 63 61 74 69 6f |from any| locatio|
|00002bc0| 6e 0d 0a 20 20 20 20 77 | 69 74 68 69 6e 20 61 20 |n.. w|ithin a |
|00002bd0| 6d 61 63 72 6f 2e 20 57 | 68 65 6e 20 61 6e 20 6f |macro. W|hen an o|
|00002be0| 62 6a 65 63 74 20 76 61 | 72 69 61 62 6c 65 20 69 |bject va|riable i|
|00002bf0| 73 20 61 73 73 69 67 6e | 65 64 20 61 20 76 61 6c |s assign|ed a val|
|00002c00| 75 65 2c 20 69 74 0d 0a | 20 20 20 20 63 6f 6e 74 |ue, it..| cont|
|00002c10| 69 6e 75 65 73 20 74 6f | 20 68 6f 6c 64 20 74 68 |inues to| hold th|
|00002c20| 65 20 76 61 6c 75 65 20 | 75 6e 74 69 6c 20 69 74 |e value |until it|
|00002c30| 20 69 73 20 61 73 73 69 | 67 6e 65 64 20 61 20 6e | is assi|gned a n|
|00002c40| 65 77 20 76 61 6c 75 65 | 2c 20 6f 72 20 74 68 65 |ew value|, or the|
|00002c50| 0d 0a 20 20 20 20 6f 62 | 6a 65 63 74 20 69 6e 20 |.. ob|ject in |
|00002c60| 77 68 69 63 68 20 69 74 | 20 69 73 20 63 6f 6e 74 |which it| is cont|
|00002c70| 61 69 6e 65 64 20 69 73 | 20 64 65 73 74 72 6f 79 |ained is| destroy|
|00002c80| 65 64 20 28 73 65 65 20 | 27 4f 62 6a 65 63 74 73 |ed (see |'Objects|
|00002c90| 27 29 2e 0d 0a 0d 0a 20 | 20 20 20 4f 62 6a 65 63 |')..... | Objec|
|00002ca0| 74 20 76 61 72 69 61 62 | 6c 65 73 20 77 68 69 63 |t variab|les whic|
|00002cb0| 68 20 61 72 65 20 61 73 | 73 69 67 6e 65 64 20 61 |h are as|signed a|
|00002cc0| 20 76 61 6c 75 65 20 69 | 6e 20 6f 6e 65 20 6d 61 | value i|n one ma|
|00002cd0| 63 72 6f 20 66 69 6c 65 | 20 63 61 6e 20 62 65 0d |cro file| can be.|
|00002ce0| 0a 20 20 20 20 72 65 66 | 65 72 65 6e 63 65 64 20 |. ref|erenced |
|00002cf0| 69 6e 20 61 6e 6f 74 68 | 65 72 20 6d 61 63 72 6f |in anoth|er macro|
|00002d00| 20 66 69 6c 65 2e 20 49 | 6e 20 74 68 69 73 20 73 | file. I|n this s|
|00002d10| 65 6e 73 65 2c 20 6f 62 | 6a 65 63 74 20 76 61 72 |ense, ob|ject var|
|00002d20| 69 61 62 6c 65 73 0d 0a | 20 20 20 20 61 72 65 20 |iables..| are |
|00002d30| 6d 6f 72 65 20 70 65 72 | 73 69 73 74 65 6e 74 20 |more per|sistent |
|00002d40| 61 6e 64 20 68 61 76 65 | 20 61 6e 20 65 76 65 6e |and have| an even|
|00002d50| 20 6c 61 72 67 65 72 20 | 73 63 6f 70 65 20 74 68 | larger |scope th|
|00002d60| 61 6e 20 67 6c 6f 62 61 | 6c 0d 0a 20 20 20 20 76 |an globa|l.. v|
|00002d70| 61 72 69 61 62 6c 65 73 | 2e 20 4f 62 6a 65 63 74 |ariables|. Object|
|00002d80| 20 76 61 72 69 61 62 6c | 65 73 20 63 61 6e 20 62 | variabl|es can b|
|00002d90| 65 20 72 65 66 65 72 65 | 6e 63 65 64 20 66 72 6f |e refere|nced fro|
|00002da0| 6d 20 61 6e 79 20 6c 6f | 63 61 74 69 6f 6e 0d 0a |m any lo|cation..|
|00002db0| 20 20 20 20 77 69 74 68 | 69 6e 20 61 20 6d 61 63 | with|in a mac|
|00002dc0| 72 6f 20 61 6e 64 20 6d | 75 73 74 20 75 73 75 61 |ro and m|ust usua|
|00002dd0| 6c 6c 79 20 62 65 20 70 | 72 65 66 69 78 65 64 20 |lly be p|refixed |
|00002de0| 77 69 74 68 20 61 6e 20 | 75 6e 64 65 72 73 63 6f |with an |undersco|
|00002df0| 72 65 0d 0a 20 20 20 20 | 63 68 61 72 61 63 74 65 |re.. |characte|
|00002e00| 72 20 77 68 65 6e 20 72 | 65 66 65 72 65 6e 63 65 |r when r|eference|
|00002e10| 64 2e 20 46 6f 72 20 65 | 78 61 6d 70 6c 65 3a 0d |d. For e|xample:.|
|00002e20| 0a 0d 0a 20 20 20 20 20 | 20 5f 61 62 63 20 3d 20 |... | _abc = |
|00002e30| 32 20 20 20 20 20 20 20 | 20 20 20 2f 2f 20 27 61 |2 | // 'a|
|00002e40| 62 63 27 20 69 73 20 61 | 6e 20 6f 62 6a 65 63 74 |bc' is a|n object|
|00002e50| 20 76 61 72 69 61 62 6c | 65 0d 0a 20 20 20 20 20 | variabl|e.. |
|00002e60| ff 66 75 6e 63 74 69 6f | 6e ff 78 79 7a 0d 0a 20 |.functio|n.xyz.. |
|00002e70| 20 20 20 20 20 20 20 61 | 20 3d 20 5f 61 62 63 20 | a| = _abc |
|00002e80| 20 20 20 20 20 20 20 2f | 2f 20 27 61 62 63 27 20 | /|/ 'abc' |
|00002e90| 69 73 20 64 65 66 69 6e | 65 64 20 68 65 72 65 2c |is defin|ed here,|
|00002ea0| 20 27 61 27 20 69 73 20 | 6c 6f 63 61 6c 0d 0a 20 | 'a' is |local.. |
|00002eb0| 20 20 20 20 ff 65 6e 64 | ff 0d 0a 20 20 20 20 20 | .end|... |
|00002ec0| 20 5f 61 62 63 20 3d 20 | 33 20 20 20 20 20 20 20 | _abc = |3 |
|00002ed0| 20 20 20 2f 2f 20 27 61 | 62 63 27 20 69 73 20 64 | // 'a|bc' is d|
|00002ee0| 65 66 69 6e 65 64 20 68 | 65 72 65 0d 0a 0d 0a 0d |efined h|ere.....|
|00002ef0| 0a 20 20 54 68 65 20 41 | 73 73 69 67 6e 6d 65 6e |. The A|ssignmen|
|00002f00| 74 20 53 74 61 74 65 6d | 65 6e 74 00 0d 0a 20 20 |t Statem|ent... |
|00002f10| c4 c4 c4 c4 c4 c4 c4 c4 | c4 c4 c4 c4 c4 c4 c4 c4 |........|........|
|00002f20| c4 c4 c4 c4 c4 c4 c4 c4 | 0d 0a 20 20 54 68 65 20 |........|.. The |
|00002f30| 61 73 73 69 67 6e 6d 65 | 6e 74 20 73 74 61 74 65 |assignme|nt state|
|00002f40| 6d 65 6e 74 20 69 73 20 | 75 73 65 64 20 74 6f 20 |ment is |used to |
|00002f50| 63 68 61 6e 67 65 20 74 | 68 65 20 76 61 6c 75 65 |change t|he value|
|00002f60| 20 6f 66 20 61 20 76 61 | 72 69 61 62 6c 65 2e 0d | of a va|riable..|
|00002f70| 0a 20 20 41 73 73 69 67 | 6e 6d 65 6e 74 20 73 74 |. Assig|nment st|
|00002f80| 61 74 65 6d 65 6e 74 73 | 20 75 73 65 20 74 68 65 |atements| use the|
|00002f90| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 66 6f 72 6d 3a | followi|ng form:|
|00002fa0| 0d 0a 0d 0a 20 20 20 20 | 76 61 72 69 61 62 6c 65 |.... |variable|
|00002fb0| 5f 6e 61 6d 65 ff 3d ff | 65 78 70 72 65 73 73 69 |_name.=.|expressi|
|00002fc0| 6f 6e 0d 0a 0d 0a 20 20 | 77 68 65 72 65 20 74 68 |on.... |where th|
|00002fd0| 65 20 76 61 72 69 61 62 | 6c 65 20 27 76 61 72 69 |e variab|le 'vari|
|00002fe0| 61 62 6c 65 5f 6e 61 6d | 65 27 20 69 73 20 61 73 |able_nam|e' is as|
|00002ff0| 73 69 67 6e 65 64 20 74 | 68 65 20 76 61 6c 75 65 |signed t|he value|
|00003000| 20 6f 66 0d 0a 20 20 27 | 65 78 70 72 65 73 73 69 | of.. '|expressi|
|00003010| 6f 6e 27 2e 20 27 65 78 | 70 72 65 73 73 69 6f 6e |on'. 'ex|pression|
|00003020| 27 20 6d 61 79 20 62 65 | 20 61 20 73 69 6d 70 6c |' may be| a simpl|
|00003030| 65 20 6f 72 20 63 6f 6d | 70 6c 65 78 20 6d 61 63 |e or com|plex mac|
|00003040| 72 6f 20 6c 61 6e 67 75 | 61 67 65 0d 0a 20 20 65 |ro langu|age.. e|
|00003050| 78 70 72 65 73 73 69 6f | 6e 20 63 6f 6d 70 6f 73 |xpressio|n compos|
|00003060| 65 64 20 6f 66 20 6e 75 | 6d 62 65 72 73 2c 20 73 |ed of nu|mbers, s|
|00003070| 74 72 69 6e 67 73 2c 20 | 6f 74 68 65 72 20 76 61 |trings, |other va|
|00003080| 72 69 61 62 6c 65 73 2c | 20 6f 74 68 65 72 0d 0a |riables,| other..|
|00003090| 20 20 65 78 70 72 65 73 | 73 69 6f 6e 73 2c 20 66 | expres|sions, f|
|000030a0| 75 6e 63 74 69 6f 6e 20 | 63 61 6c 6c 73 2c 20 6f |unction |calls, o|
|000030b0| 72 20 65 76 65 6e 20 6f | 74 68 65 72 20 73 74 61 |r even o|ther sta|
|000030c0| 74 65 6d 65 6e 74 73 2e | 0d 0a 0d 0a 20 20 41 20 |tements.|.... A |
|000030d0| 66 65 77 20 73 69 6d 70 | 6c 65 20 65 78 61 6d 70 |few simp|le examp|
|000030e0| 6c 65 73 20 6f 66 20 74 | 68 65 20 61 73 73 69 67 |les of t|he assig|
|000030f0| 6e 6d 65 6e 74 20 73 74 | 61 74 65 6d 65 6e 74 20 |nment st|atement |
|00003100| 61 72 65 3a 0d 0a 0d 0a | 20 20 20 20 78 20 3d 20 |are:....| x = |
|00003110| 32 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |2 | |
|00003120| 20 20 20 20 20 20 20 20 | 20 2f 2f 20 73 65 74 73 | | // sets|
|00003130| 20 74 68 65 20 76 61 72 | 69 61 62 6c 65 20 78 20 | the var|iable x |
|00003140| 74 6f 20 32 0d 0a 20 20 | 20 20 78 20 3d 20 78 20 |to 2.. | x = x |
|00003150| 2b 20 33 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |+ 3 | |
|00003160| 20 20 20 20 20 20 20 2f | 2f 20 73 65 74 73 20 74 | /|/ sets t|
|00003170| 68 65 20 76 61 72 69 61 | 62 6c 65 20 78 20 74 6f |he varia|ble x to|
|00003180| 20 35 0d 0a 20 20 20 20 | 66 72 75 69 74 20 3d 20 | 5.. |fruit = |
|00003190| 27 61 70 70 6c 65 27 20 | 20 20 20 20 20 20 20 20 |'apple' | |
|000031a0| 20 20 20 20 20 2f 2f 20 | 73 65 74 73 20 74 68 65 | // |sets the|
|000031b0| 20 76 61 72 69 61 62 6c | 65 20 66 72 75 69 74 20 | variabl|e fruit |
|000031c0| 74 6f 20 27 61 70 70 6c | 65 27 0d 0a 20 20 20 20 |to 'appl|e'.. |
|000031d0| 66 72 75 69 74 73 20 3d | 20 66 72 75 69 74 20 2b |fruits =| fruit +|
|000031e0| 20 22 20 6f 72 61 6e 67 | 65 22 20 20 20 2f 2f 20 | " orang|e" // |
|000031f0| 73 65 74 73 20 74 68 65 | 20 76 61 72 69 61 62 6c |sets the| variabl|
|00003200| 65 20 66 72 75 69 74 73 | 20 74 6f 0d 0a 20 20 20 |e fruits| to.. |
|00003210| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003220| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2f 2f | | //|
|00003230| 20 20 20 20 27 61 70 70 | 6c 65 20 6f 72 61 6e 67 | 'app|le orang|
|00003240| 65 27 0d 0a 0d 0a 20 20 | 4f 62 6a 65 63 74 20 76 |e'.... |Object v|
|00003250| 61 72 69 61 62 6c 65 73 | 20 63 61 6e 20 61 6c 73 |ariables| can als|
|00003260| 6f 20 62 65 20 61 73 73 | 69 67 6e 65 64 20 76 61 |o be ass|igned va|
|00003270| 6c 75 65 73 20 62 79 20 | 75 73 69 6e 67 20 74 68 |lues by |using th|
|00003280| 65 20 27 73 65 74 27 0d | 0a 20 20 73 74 61 74 65 |e 'set'.|. state|
|00003290| 6d 65 6e 74 2e 20 46 6f | 72 20 65 78 61 6d 70 6c |ment. Fo|r exampl|
|000032a0| 65 2c 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |e, the f|ollowing|
|000032b0| 20 74 77 6f 20 73 74 61 | 74 65 6d 65 6e 74 73 20 | two sta|tements |
|000032c0| 61 72 65 20 65 71 75 69 | 76 61 6c 65 6e 74 3a 0d |are equi|valent:.|
|000032d0| 0a 0d 0a 20 20 20 20 5f | 63 6f 75 6e 74 20 3d 20 |... _|count = |
|000032e0| 31 20 20 20 20 20 2f 2f | 20 73 65 74 20 6f 62 6a |1 //| set obj|
|000032f0| 65 63 74 20 76 61 72 69 | 61 62 6c 65 20 27 63 6f |ect vari|able 'co|
|00003300| 75 6e 74 27 20 74 6f 20 | 31 0d 0a 20 20 20 ff 73 |unt' to |1.. .s|
|00003310| 65 74 ff 63 6f 75 6e 74 | 20 31 20 20 20 20 2f 2f |et.count| 1 //|
|00003320| 20 73 65 74 20 6f 62 6a | 65 63 74 20 76 61 72 69 | set obj|ect vari|
|00003330| 61 62 6c 65 20 27 63 6f | 75 6e 74 27 20 74 6f 20 |able 'co|unt' to |
|00003340| 31 0d 0a 0d 0a 20 20 4e | 6f 74 65 20 74 68 61 74 |1.... N|ote that|
|00003350| 20 74 68 65 20 75 6e 64 | 65 72 73 63 6f 72 65 20 | the und|erscore |
|00003360| 28 5f 29 20 63 68 61 72 | 61 63 74 65 72 20 69 73 |(_) char|acter is|
|00003370| 20 6e 6f 74 20 72 65 71 | 75 69 72 65 64 20 77 68 | not req|uired wh|
|00003380| 65 6e 20 61 6e 20 6f 62 | 6a 65 63 74 0d 0a 20 20 |en an ob|ject.. |
|00003390| 76 61 72 69 61 62 6c 65 | 20 69 73 20 72 65 66 65 |variable| is refe|
|000033a0| 72 65 6e 63 65 64 20 69 | 6e 20 74 68 65 20 66 69 |renced i|n the fi|
|000033b0| 72 73 74 20 70 61 72 74 | 20 6f 66 20 74 68 65 20 |rst part| of the |
|000033c0| 27 73 65 74 27 20 73 74 | 61 74 65 6d 65 6e 74 2e |'set' st|atement.|
|000033d0| 0d 0a 0d 0a 0d 0a 20 20 | 56 61 72 69 61 62 6c 65 |...... |Variable|
|000033e0| 20 44 65 63 6c 61 72 61 | 74 69 6f 6e 73 00 0d 0a | Declara|tions...|
|000033f0| 20 20 c4 c4 c4 c4 c4 c4 | c4 c4 c4 c4 c4 c4 c4 c4 | ......|........|
|00003400| c4 c4 c4 c4 c4 c4 c4 0d | 0a 20 20 49 6e 20 6d 6f |........|. In mo|
|00003410| 73 74 20 63 61 73 65 73 | 2c 20 76 61 72 69 61 62 |st cases|, variab|
|00003420| 6c 65 73 20 61 72 65 20 | 61 75 74 6f 6d 61 74 69 |les are |automati|
|00003430| 63 61 6c 6c 79 20 64 65 | 63 6c 61 72 65 64 20 74 |cally de|clared t|
|00003440| 68 65 20 66 69 72 73 74 | 20 74 69 6d 65 0d 0a 20 |he first| time.. |
|00003450| 20 74 68 65 79 20 61 72 | 65 20 61 73 73 69 67 6e | they ar|e assign|
|00003460| 65 64 20 61 20 76 61 6c | 75 65 2c 20 61 6e 64 20 |ed a val|ue, and |
|00003470| 76 61 72 69 61 62 6c 65 | 20 64 65 63 6c 61 72 61 |variable| declara|
|00003480| 74 69 6f 6e 73 20 61 72 | 65 20 6e 6f 74 20 72 65 |tions ar|e not re|
|00003490| 71 75 69 72 65 64 2e 0d | 0a 20 20 46 6f 72 20 65 |quired..|. For e|
|000034a0| 78 61 6d 70 6c 65 3a 0d | 0a 0d 0a 20 20 20 ff 66 |xample:.|... .f|
|000034b0| 75 6e 63 74 69 6f 6e ff | 61 62 63 0d 0a 20 20 20 |unction.|abc.. |
|000034c0| 20 20 20 61 20 3d 20 31 | 20 20 20 20 20 20 20 20 | a = 1| |
|000034d0| 20 20 20 20 20 20 20 20 | 2f 2f 20 6c 6f 63 61 6c | |// local|
|000034e0| 20 76 61 72 69 61 62 6c | 65 2c 20 64 65 63 6c 61 | variabl|e, decla|
|000034f0| 72 61 74 69 6f 6e 20 6e | 6f 74 20 72 65 71 75 69 |ration n|ot requi|
|00003500| 72 65 64 0d 0a 20 20 20 | 20 20 20 73 61 79 20 61 |red.. | say a|
|00003510| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003520| 2f 2f 20 64 69 73 70 6c | 61 79 73 20 27 31 27 0d |// displ|ays '1'.|
|00003530| 0a 20 20 20 ff 65 6e 64 | ff 0d 0a 0d 0a 20 20 20 |. .end|..... |
|00003540| 20 78 79 7a 20 3d 20 27 | 48 65 6c 6c 6f 20 74 68 | xyz = '|Hello th|
|00003550| 65 72 65 21 27 20 20 20 | 2f 2f 20 67 6c 6f 62 61 |ere!' |// globa|
|00003560| 6c 20 76 61 72 69 61 62 | 6c 65 2c 20 64 65 63 6c |l variab|le, decl|
|00003570| 61 72 61 74 69 6f 6e 20 | 6e 6f 74 20 72 65 71 75 |aration |not requ|
|00003580| 69 72 65 64 0d 0a 20 20 | 20 20 73 61 79 20 78 79 |ired.. | say xy|
|00003590| 7a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |z | |
|000035a0| 20 2f 2f 20 64 69 73 70 | 6c 61 79 73 20 27 48 65 | // disp|lays 'He|
|000035b0| 6c 6c 6f 20 74 68 65 72 | 65 21 27 0d 0a 0d 0a 20 |llo ther|e!'.... |
|000035c0| 20 48 6f 77 65 76 65 72 | 2c 20 69 66 20 61 20 6c | However|, if a l|
|000035d0| 6f 63 61 6c 20 6f 72 20 | 67 6c 6f 62 61 6c 20 76 |ocal or |global v|
|000035e0| 61 72 69 61 62 6c 65 20 | 69 73 20 72 65 66 65 72 |ariable |is refer|
|000035f0| 65 6e 63 65 64 20 62 65 | 66 6f 72 65 20 69 74 20 |enced be|fore it |
|00003600| 69 73 0d 0a 20 20 61 73 | 73 69 67 6e 65 64 20 61 |is.. as|signed a|
|00003610| 20 76 61 6c 75 65 2c 20 | 74 68 65 6e 20 69 74 20 | value, |then it |
|00003620| 6d 75 73 74 20 66 69 72 | 73 74 20 62 65 20 64 65 |must fir|st be de|
|00003630| 63 6c 61 72 65 64 20 77 | 69 74 68 20 74 68 65 20 |clared w|ith the |
|00003640| 27 76 61 72 27 0d 0a 20 | 20 6b 65 79 77 6f 72 64 |'var'.. | keyword|
|00003650| 2e 20 54 68 65 20 27 76 | 61 72 27 20 6b 65 79 77 |. The 'v|ar' keyw|
|00003660| 6f 72 64 20 64 65 66 69 | 6e 65 73 20 74 68 65 20 |ord defi|nes the |
|00003670| 69 64 65 6e 74 69 66 69 | 65 72 20 77 68 69 63 68 |identifi|er which|
|00003680| 20 66 6f 6c 6c 6f 77 73 | 20 69 74 20 61 73 0d 0a | follows| it as..|
|00003690| 20 20 61 20 76 61 72 69 | 61 62 6c 65 20 6e 61 6d | a vari|able nam|
|000036a0| 65 20 61 6e 64 20 69 6e | 69 74 69 61 6c 69 7a 65 |e and in|itialize|
|000036b0| 73 20 74 68 65 20 76 61 | 6c 75 65 20 6f 66 20 74 |s the va|lue of t|
|000036c0| 68 65 20 6e 65 77 20 76 | 61 72 69 61 62 6c 65 20 |he new v|ariable |
|000036d0| 74 6f 20 74 68 65 0d 0a | 20 20 6e 75 6c 6c 20 73 |to the..| null s|
|000036e0| 74 72 69 6e 67 2e 20 46 | 6f 72 20 65 78 61 6d 70 |tring. F|or examp|
|000036f0| 6c 65 3a 0d 0a 0d 0a 20 | 20 20 ff 76 61 72 ff 20 |le:.... | .var. |
|00003700| 78 79 7a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |xyz | |
|00003710| 20 20 20 20 20 20 2f 2f | 20 67 6c 6f 62 61 6c 20 | //| global |
|00003720| 76 61 72 69 61 62 6c 65 | 20 27 78 79 7a 27 20 69 |variable| 'xyz' i|
|00003730| 73 20 64 65 63 6c 61 72 | 65 64 0d 0a 20 20 20 20 |s declar|ed.. |
|00003740| 73 61 79 20 20 78 79 7a | 20 20 20 20 20 20 20 20 |say xyz| |
|00003750| 20 20 20 20 20 20 20 20 | 20 20 20 2f 2f 20 64 69 | | // di|
|00003760| 73 70 6c 61 79 73 20 6e | 6f 74 68 69 6e 67 20 28 |splays n|othing (|
|00003770| 74 68 65 20 6e 75 6c 6c | 20 73 74 72 69 6e 67 29 |the null| string)|
|00003780| 0d 0a 0d 0a 20 20 20 ff | 66 75 6e 63 74 69 6f 6e |.... .|function|
|00003790| ff 0d 0a 20 20 20 20 20 | ff 76 61 72 ff 61 20 20 |... |.var.a |
|000037a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000037b0| 20 20 2f 2f 20 6c 6f 63 | 61 6c 20 76 61 72 69 61 | // loc|al varia|
|000037c0| 62 6c 65 20 27 61 27 20 | 69 73 20 64 65 63 6c 61 |ble 'a' |is decla|
|000037d0| 72 65 64 0d 0a 20 20 20 | 20 20 ff 72 65 70 65 61 |red.. | .repea|
|000037e0| 74 ff 0d 0a 20 20 20 20 | 20 20 20 20 61 20 3d 20 |t... | a = |
|000037f0| 61 20 2b 20 31 20 20 20 | 20 20 20 20 20 20 20 20 |a + 1 | |
|00003800| 20 20 20 2f 2f 20 27 61 | 27 20 69 73 20 72 65 66 | // 'a|' is ref|
|00003810| 65 72 65 6e 63 65 64 20 | 62 65 66 6f 72 65 20 61 |erenced |before a|
|00003820| 73 73 69 67 6e 65 64 0d | 0a 20 20 20 20 20 ff 75 |ssigned.|. .u|
|00003830| 6e 74 69 6c ff 61 20 3d | 3d 20 31 30 0d 0a 20 20 |ntil.a =|= 10.. |
|00003840| 20 ff 65 6e 64 ff 0d 0a | 0d 0a 20 20 4f 62 6a 65 | .end...|.. Obje|
|00003850| 63 74 20 76 61 72 69 61 | 62 6c 65 73 20 64 6f 20 |ct varia|bles do |
|00003860| 6e 6f 74 20 6e 65 65 64 | 20 74 6f 20 62 65 20 64 |not need| to be d|
|00003870| 65 63 6c 61 72 65 64 2e | 20 53 69 6e 63 65 20 72 |eclared.| Since r|
|00003880| 65 66 65 72 65 6e 63 65 | 73 20 74 6f 20 61 6e 0d |eference|s to an.|
|00003890| 0a 20 20 6f 62 6a 65 63 | 74 20 76 61 72 69 61 62 |. objec|t variab|
|000038a0| 6c 65 20 6d 75 73 74 20 | 62 65 20 70 72 65 63 65 |le must |be prece|
|000038b0| 64 65 64 20 62 79 20 61 | 6e 20 75 6e 64 65 72 73 |ded by a|n unders|
|000038c0| 63 6f 72 65 20 63 68 61 | 72 61 63 74 65 72 20 28 |core cha|racter (|
|000038d0| 5f 29 2c 20 74 68 65 0d | 0a 20 20 63 6f 6d 70 69 |_), the.|. compi|
|000038e0| 6c 65 72 20 61 75 74 6f | 6d 61 74 69 63 61 6c 6c |ler auto|maticall|
|000038f0| 79 20 72 65 63 6f 67 6e | 69 7a 65 73 20 6f 62 6a |y recogn|izes obj|
|00003900| 65 63 74 20 76 61 72 69 | 61 62 6c 65 73 2e 20 49 |ect vari|ables. I|
|00003910| 66 20 61 6e 20 6f 62 6a | 65 63 74 0d 0a 20 20 76 |f an obj|ect.. v|
|00003920| 61 72 69 61 62 6c 65 20 | 69 73 20 72 65 66 65 72 |ariable |is refer|
|00003930| 65 6e 63 65 64 20 61 6e | 64 20 68 61 73 20 6e 6f |enced an|d has no|
|00003940| 74 20 79 65 74 20 62 65 | 65 6e 20 61 73 73 69 67 |t yet be|en assig|
|00003950| 6e 65 64 20 61 20 76 61 | 6c 75 65 2c 20 74 68 65 |ned a va|lue, the|
|00003960| 0d 0a 20 20 76 61 6c 75 | 65 20 6f 66 20 74 68 65 |.. valu|e of the|
|00003970| 20 6f 62 6a 65 63 74 20 | 76 61 72 69 61 62 6c 65 | object |variable|
|00003980| 20 69 73 20 74 68 65 20 | 6e 75 6c 6c 20 73 74 72 | is the |null str|
|00003990| 69 6e 67 2e 20 46 6f 72 | 20 65 78 61 6d 70 6c 65 |ing. For| example|
|000039a0| 3a 0d 0a 0d 0a 20 20 20 | 20 73 61 79 20 5f 6f 62 |:.... | say _ob|
|000039b0| 6a 65 63 74 76 61 72 20 | 20 20 20 20 20 20 20 20 |jectvar | |
|000039c0| 20 20 20 20 2f 2f 20 64 | 69 73 70 6c 61 79 73 20 | // d|isplays |
|000039d0| 6e 6f 74 68 69 6e 67 20 | 28 74 68 65 20 6e 75 6c |nothing |(the nul|
|000039e0| 6c 20 73 74 72 69 6e 67 | 29 0d 0a 0d 0a 20 20 20 |l string|).... |
|000039f0| 20 5f 6f 62 6a 65 63 74 | 76 61 72 20 3d 20 31 32 | _object|var = 12|
|00003a00| 0d 0a 20 20 20 20 73 61 | 79 20 5f 6f 62 6a 65 63 |.. sa|y _objec|
|00003a10| 74 76 61 72 20 20 20 20 | 20 20 20 20 20 20 20 20 |tvar | |
|00003a20| 20 2f 2f 20 64 69 73 70 | 6c 61 79 73 20 31 32 0d | // disp|lays 12.|
|00003a30| 0a 0d 0a 0d 0a 20 20 43 | 6f 6e 76 65 72 73 69 6f |..... C|onversio|
|00003a40| 6e 73 00 0d 0a 20 20 c4 | c4 c4 c4 c4 c4 c4 c4 c4 |ns... .|........|
|00003a50| c4 c4 0d 0a 20 20 53 69 | 6e 63 65 20 74 68 65 20 |.... Si|nce the |
|00003a60| 6d 61 63 72 6f 20 6c 61 | 6e 67 75 61 67 65 20 69 |macro la|nguage i|
|00003a70| 73 20 74 79 70 65 6c 65 | 73 73 2c 20 65 78 70 6c |s typele|ss, expl|
|00003a80| 69 63 69 74 20 63 6f 6e | 76 65 72 73 69 6f 6e 20 |icit con|version |
|00003a90| 62 65 74 77 65 65 6e 20 | 64 61 74 61 0d 0a 20 20 |between |data.. |
|00003aa0| 74 79 70 65 73 20 69 73 | 20 6e 6f 74 20 72 65 71 |types is| not req|
|00003ab0| 75 69 72 65 64 2e 20 49 | 66 20 61 20 73 74 72 69 |uired. I|f a stri|
|00003ac0| 6e 67 20 69 73 20 73 70 | 65 63 69 66 69 65 64 20 |ng is sp|ecified |
|00003ad0| 77 68 65 72 65 20 61 20 | 6e 75 6d 62 65 72 20 69 |where a |number i|
|00003ae0| 73 0d 0a 20 20 65 78 70 | 65 63 74 65 64 2c 20 69 |s.. exp|ected, i|
|00003af0| 74 20 69 73 20 63 6f 6e | 76 65 72 74 65 64 20 74 |t is con|verted t|
|00003b00| 6f 20 61 20 6e 75 6d 62 | 65 72 20 61 73 20 69 74 |o a numb|er as it|
|00003b10| 20 69 73 20 75 73 65 64 | 2e 20 53 69 6d 69 6c 61 | is used|. Simila|
|00003b20| 72 6c 79 2c 20 69 66 20 | 61 0d 0a 20 20 6e 75 6d |rly, if |a.. num|
|00003b30| 62 65 72 20 69 73 20 73 | 70 65 63 69 66 69 65 64 |ber is s|pecified|
|00003b40| 20 77 68 65 72 65 20 61 | 20 73 74 72 69 6e 67 20 | where a| string |
|00003b50| 69 73 20 65 78 70 65 63 | 74 65 64 2c 20 69 74 20 |is expec|ted, it |
|00003b60| 69 73 20 63 6f 6e 76 65 | 72 74 65 64 20 74 6f 20 |is conve|rted to |
|00003b70| 61 0d 0a 20 20 73 74 72 | 69 6e 67 2e 20 46 6f 72 |a.. str|ing. For|
|00003b80| 20 65 78 61 6d 70 6c 65 | 3a 0d 0a 0d 0a 20 20 20 | example|:.... |
|00003b90| 20 78 20 3d 20 22 31 32 | 22 20 2b 20 22 33 34 22 | x = "12|" + "34"|
|00003ba0| 20 20 20 20 20 20 20 2f | 2f 20 78 20 69 73 20 27 | /|/ x is '|
|00003bb0| 34 36 27 0d 0a 20 20 20 | 20 78 20 3d 20 31 32 20 |46'.. | x = 12 |
|00003bc0| 2b 20 22 61 62 63 22 20 | 20 20 20 20 20 20 20 2f |+ "abc" | /|
|00003bd0| 2f 20 78 20 69 73 20 27 | 31 32 61 62 63 27 0d 0a |/ x is '|12abc'..|
|00003be0| 0d 0a 0d 0a 20 20 45 78 | 70 72 65 73 73 69 6f 6e |.... Ex|pression|
|00003bf0| 73 00 0d 0a 20 20 c4 c4 | c4 c4 c4 c4 c4 c4 c4 c4 |s... ..|........|
|00003c00| c4 0d 0a 20 20 45 78 70 | 72 65 73 73 69 6f 6e 73 |... Exp|ressions|
|00003c10| 20 61 72 65 20 73 69 6d | 70 6c 65 20 6f 72 20 63 | are sim|ple or c|
|00003c20| 6f 6d 70 6c 65 78 20 67 | 72 6f 75 70 73 20 6f 66 |omplex g|roups of|
|00003c30| 20 6e 75 6d 62 65 72 73 | 2c 20 73 74 72 69 6e 67 | numbers|, string|
|00003c40| 73 2c 0d 0a 20 20 76 61 | 72 69 61 62 6c 65 73 2c |s,.. va|riables,|
|00003c50| 20 66 75 6e 63 74 69 6f | 6e 20 63 61 6c 6c 73 2c | functio|n calls,|
|00003c60| 20 73 74 61 74 65 6d 65 | 6e 74 73 2c 20 6f 72 20 | stateme|nts, or |
|00003c70| 6f 74 68 65 72 20 65 78 | 70 72 65 73 73 69 6f 6e |other ex|pression|
|00003c80| 73 20 6a 6f 69 6e 65 64 | 0d 0a 20 20 74 6f 67 65 |s joined|.. toge|
|00003c90| 74 68 65 72 20 62 79 20 | 7a 65 72 6f 20 6f 72 20 |ther by |zero or |
|00003ca0| 6d 6f 72 65 20 6d 61 63 | 72 6f 20 6c 61 6e 67 75 |more mac|ro langu|
|00003cb0| 61 67 65 20 27 6f 70 65 | 72 61 74 6f 72 73 27 2e |age 'ope|rators'.|
|00003cc0| 20 54 68 65 73 65 20 61 | 72 65 20 6a 75 73 74 20 | These a|re just |
|00003cd0| 61 0d 0a 20 20 66 65 77 | 20 65 78 61 6d 70 6c 65 |a.. few| example|
|00003ce0| 73 20 6f 66 20 73 69 6d | 70 6c 65 20 65 78 70 72 |s of sim|ple expr|
|00003cf0| 65 73 73 69 6f 6e 73 3a | 0d 0a 0d 0a 20 20 20 20 |essions:|.... |
|00003d00| 31 0d 0a 20 20 20 20 61 | 62 63 0d 0a 20 20 20 20 |1.. a|bc.. |
|00003d10| 78 20 2f 20 34 0d 0a 20 | 20 20 20 22 61 70 70 6c |x / 4.. | "appl|
|00003d20| 65 73 20 22 20 2b 20 22 | 6f 72 61 6e 67 65 73 22 |es " + "|oranges"|
|00003d30| 0d 0a 20 20 20 20 78 20 | 61 6e 64 20 79 0d 0a 20 |.. x |and y.. |
|00003d40| 20 20 20 67 65 74 6c 69 | 6e 65 73 20 2d 20 67 65 | getli|nes - ge|
|00003d50| 74 72 6f 77 0d 0a 0d 0a | 20 20 45 78 70 72 65 73 |trow....| Expres|
|00003d60| 73 69 6f 6e 73 20 6d 61 | 79 20 62 65 20 65 6e 63 |sions ma|y be enc|
|00003d70| 6c 6f 73 65 64 20 69 6e | 20 70 61 72 65 6e 74 68 |losed in| parenth|
|00003d80| 65 73 65 73 20 28 63 61 | 6c 6c 65 64 20 27 73 75 |eses (ca|lled 'su|
|00003d90| 62 65 78 70 72 65 73 73 | 69 6f 6e 73 27 29 0d 0a |bexpress|ions')..|
|00003da0| 20 20 61 6e 64 20 6a 6f | 69 6e 65 64 20 62 79 20 | and jo|ined by |
|00003db0| 6f 70 65 72 61 74 6f 72 | 73 20 74 6f 20 66 6f 72 |operator|s to for|
|00003dc0| 6d 20 6d 6f 72 65 20 63 | 6f 6d 70 6c 65 78 20 65 |m more c|omplex e|
|00003dd0| 78 70 72 65 73 73 69 6f | 6e 73 3a 0d 0a 0d 0a 20 |xpressio|ns:.... |
|00003de0| 20 20 20 28 78 20 2b 20 | 79 29 20 2f 20 32 0d 0a | (x + |y) / 2..|
|00003df0| 20 20 20 20 28 28 61 20 | 2b 20 62 29 20 2a 20 28 | ((a |+ b) * (|
|00003e00| 62 20 2b 20 63 29 29 20 | 73 68 6c 20 28 63 20 2d |b + c)) |shl (c -|
|00003e10| 20 64 29 0d 0a 20 20 20 | 20 28 61 20 6f 72 20 62 | d).. | (a or b|
|00003e20| 29 ff 61 6e 64 ff 28 28 | 6e 6f 74 20 63 29 20 6f |).and.((|not c) o|
|00003e30| 72 20 64 29 0d 0a 0d 0a | 20 20 54 68 65 20 65 76 |r d)....| The ev|
|00003e40| 61 6c 75 61 74 69 6f 6e | 20 6f 66 20 65 78 70 72 |aluation| of expr|
|00003e50| 65 73 73 69 6f 6e 73 20 | 67 65 6e 65 72 61 6c 6c |essions |generall|
|00003e60| 79 20 70 72 6f 63 65 65 | 64 73 20 66 72 6f 6d 20 |y procee|ds from |
|00003e70| 6c 65 66 74 20 74 6f 20 | 72 69 67 68 74 2c 0d 0a |left to |right,..|
|00003e80| 20 20 62 75 74 20 69 73 | 20 61 6c 73 6f 20 62 61 | but is| also ba|
|00003e90| 73 65 64 20 6f 6e 20 74 | 68 65 20 70 72 69 6f 72 |sed on t|he prior|
|00003ea0| 69 74 79 20 6f 66 20 74 | 68 65 20 6f 70 65 72 61 |ity of t|he opera|
|00003eb0| 74 6f 72 73 20 77 69 74 | 68 69 6e 20 74 68 65 0d |tors wit|hin the.|
|00003ec0| 0a 20 20 65 78 70 72 65 | 73 73 69 6f 6e 2c 20 6f |. expre|ssion, o|
|00003ed0| 72 20 74 68 65 20 27 6f | 70 65 72 61 74 6f 72 20 |r the 'o|perator |
|00003ee0| 70 72 65 63 65 64 65 6e | 63 65 27 2e 20 4f 70 65 |preceden|ce'. Ope|
|00003ef0| 72 61 74 6f 72 73 20 77 | 69 74 68 20 68 69 67 68 |rators w|ith high|
|00003f00| 65 72 0d 0a 20 20 70 72 | 65 63 65 64 65 6e 63 65 |er.. pr|ecedence|
|00003f10| 20 61 72 65 20 65 76 61 | 6c 75 61 74 65 64 20 62 | are eva|luated b|
|00003f20| 65 66 6f 72 65 20 6f 70 | 65 72 61 74 6f 72 73 20 |efore op|erators |
|00003f30| 77 69 74 68 20 6c 6f 77 | 65 72 20 70 72 65 63 65 |with low|er prece|
|00003f40| 64 65 6e 63 65 2e 20 46 | 6f 72 0d 0a 20 20 65 78 |dence. F|or.. ex|
|00003f50| 61 6d 70 6c 65 2c 20 69 | 6e 20 74 68 65 20 65 78 |ample, i|n the ex|
|00003f60| 70 72 65 73 73 69 6f 6e | 3a 0d 0a 0d 0a 20 20 20 |pression|:.... |
|00003f70| 20 78 20 2d 20 79 20 2a | 20 35 0d 0a 0d 0a 20 20 | x - y *| 5.... |
|00003f80| 27 79 20 2a 20 35 27 20 | 69 73 20 65 76 61 6c 75 |'y * 5' |is evalu|
|00003f90| 61 74 65 64 20 66 69 72 | 73 74 20 61 6e 64 20 74 |ated fir|st and t|
|00003fa0| 68 65 6e 20 73 75 62 74 | 72 61 63 74 65 64 20 66 |hen subt|racted f|
|00003fb0| 72 6f 6d 20 27 78 27 2c | 20 73 69 6e 63 65 20 74 |rom 'x',| since t|
|00003fc0| 68 65 0d 0a 20 20 6d 75 | 6c 74 69 70 6c 69 63 61 |he.. mu|ltiplica|
|00003fd0| 74 69 6f 6e 20 6f 70 65 | 72 61 74 6f 72 20 27 2a |tion ope|rator '*|
|00003fe0| 27 20 68 61 73 20 61 20 | 68 69 67 68 65 72 20 70 |' has a |higher p|
|00003ff0| 72 65 63 65 64 65 6e 63 | 65 20 74 68 61 6e 20 74 |recedenc|e than t|
|00004000| 68 65 0d 0a 20 20 73 75 | 62 74 72 61 63 74 69 6f |he.. su|btractio|
|00004010| 6e 20 6f 70 65 72 61 74 | 6f 72 20 27 2d 27 2e 20 |n operat|or '-'. |
|00004020| 50 61 72 65 6e 74 68 65 | 73 65 73 20 6d 61 79 20 |Parenthe|ses may |
|00004030| 62 65 20 75 73 65 64 20 | 74 6f 20 66 6f 72 63 65 |be used |to force|
|00004040| 20 74 68 65 0d 0a 20 20 | 65 78 70 72 65 73 73 69 | the.. |expressi|
|00004050| 6f 6e 20 74 6f 20 62 65 | 20 65 76 61 6c 75 61 74 |on to be| evaluat|
|00004060| 65 64 20 77 69 74 68 20 | 61 20 75 73 65 72 2d 64 |ed with |a user-d|
|00004070| 65 66 69 6e 65 64 20 70 | 72 69 6f 72 69 74 79 2e |efined p|riority.|
|00004080| 20 46 6f 72 20 65 78 61 | 6d 70 6c 65 3a 0d 0a 0d | For exa|mple:...|
|00004090| 0a 20 20 20 20 28 78 20 | 2d 20 79 29 20 2a 20 35 |. (x |- y) * 5|
|000040a0| 0d 0a 0d 0a 20 20 49 6e | 20 74 68 65 20 61 62 6f |.... In| the abo|
|000040b0| 76 65 20 65 78 61 6d 70 | 6c 65 2c 20 27 78 20 2d |ve examp|le, 'x -|
|000040c0| 20 79 27 20 69 73 20 65 | 76 61 6c 75 61 74 65 64 | y' is e|valuated|
|000040d0| 20 66 69 72 73 74 2c 20 | 61 6e 64 20 74 68 65 6e | first, |and then|
|000040e0| 20 6d 75 6c 74 69 70 6c | 69 65 64 0d 0a 20 20 62 | multipl|ied.. b|
|000040f0| 79 20 27 35 27 2e 0d 0a | 0d 0a 20 20 4e 6f 74 65 |y '5'...|.. Note|
|00004100| 20 74 68 61 74 20 77 68 | 69 6c 65 20 74 68 65 20 | that wh|ile the |
|00004110| 76 61 6c 75 65 20 6f 66 | 20 61 6e 20 65 78 70 72 |value of| an expr|
|00004120| 65 73 73 69 6f 6e 20 69 | 73 20 61 6c 77 61 79 73 |ession i|s always|
|00004130| 20 62 61 73 65 64 20 6f | 6e 0d 0a 20 20 70 61 72 | based o|n.. par|
|00004140| 65 6e 74 68 65 73 65 73 | 20 61 6e 64 20 6f 70 65 |entheses| and ope|
|00004150| 72 61 74 6f 72 20 70 72 | 65 63 65 64 65 6e 63 65 |rator pr|ecedence|
|00004160| 2c 20 74 68 65 20 61 63 | 74 75 61 6c 20 6f 72 64 |, the ac|tual ord|
|00004170| 65 72 20 69 6e 20 74 69 | 6d 65 20 69 6e 20 77 68 |er in ti|me in wh|
|00004180| 69 63 68 0d 0a 20 20 65 | 6c 65 6d 65 6e 74 73 20 |ich.. e|lements |
|00004190| 6f 66 20 74 68 65 20 65 | 78 70 72 65 73 73 69 6f |of the e|xpressio|
|000041a0| 6e 20 61 72 65 20 65 76 | 61 6c 75 61 74 65 64 20 |n are ev|aluated |
|000041b0| 69 73 20 6e 6f 74 20 64 | 65 66 69 6e 65 64 20 28 |is not d|efined (|
|000041c0| 74 68 65 20 27 61 6e 64 | 27 20 61 6e 64 0d 0a 20 |the 'and|' and.. |
|000041d0| 20 27 6f 72 27 20 6f 70 | 65 72 61 74 6f 72 73 20 | 'or' op|erators |
|000041e0| 61 72 65 20 65 78 63 65 | 70 74 69 6f 6e 73 20 2d |are exce|ptions -|
|000041f0| 20 73 65 65 20 27 4c 6f | 67 69 63 61 6c 20 4f 70 | see 'Lo|gical Op|
|00004200| 65 72 61 74 6f 72 73 27 | 29 20 2e 20 46 6f 72 0d |erators'|) . For.|
|00004210| 0a 20 20 65 78 61 6d 70 | 6c 65 3a 0d 0a 0d 0a 20 |. examp|le:.... |
|00004220| 20 20 20 28 66 75 6e 41 | 20 31 29 20 2b 20 28 66 | (funA| 1) + (f|
|00004230| 75 6e 42 20 32 29 20 2a | 20 28 66 75 6e 43 20 33 |unB 2) *| (funC 3|
|00004240| 29 0d 0a 0d 0a 20 20 49 | 6e 20 74 68 65 20 65 78 |).... I|n the ex|
|00004250| 70 72 65 73 73 69 6f 6e | 20 61 62 6f 76 65 2c 20 |pression| above, |
|00004260| 79 6f 75 20 6d 61 79 20 | 6e 6f 74 20 61 73 73 75 |you may |not assu|
|00004270| 6d 65 20 74 68 61 74 20 | 74 68 65 20 66 75 6e 63 |me that |the func|
|00004280| 74 69 6f 6e 20 27 66 75 | 6e 43 27 0d 0a 20 20 69 |tion 'fu|nC'.. i|
|00004290| 73 20 63 61 6c 6c 65 64 | 20 62 65 66 6f 72 65 20 |s called| before |
|000042a0| 74 68 65 20 66 75 6e 63 | 74 69 6f 6e 20 27 66 75 |the func|tion 'fu|
|000042b0| 6e 41 27 2e 0d 0a 0d 0a | 0d 0a 20 20 54 72 75 65 |nA'.....|.. True|
|000042c0| 20 61 6e 64 20 46 61 6c | 73 65 00 0d 0a 20 20 c4 | and Fal|se... .|
|000042d0| c4 c4 c4 c4 c4 c4 c4 c4 | c4 c4 c4 c4 c4 0d 0a 20 |........|....... |
|000042e0| 20 53 65 76 65 72 61 6c | 20 6d 61 63 72 6f 20 6c | Several| macro l|
|000042f0| 61 6e 67 75 61 67 65 20 | 6f 70 65 72 61 74 6f 72 |anguage |operator|
|00004300| 73 20 61 6e 64 20 73 74 | 61 74 65 6d 65 6e 74 73 |s and st|atements|
|00004310| 20 74 65 73 74 20 77 68 | 65 74 68 65 72 20 61 6e | test wh|ether an|
|00004320| 0d 0a 20 20 65 78 70 72 | 65 73 73 69 6f 6e 20 69 |.. expr|ession i|
|00004330| 73 20 54 52 55 45 20 6f | 72 20 46 41 4c 53 45 2e |s TRUE o|r FALSE.|
|00004340| 20 41 6e 20 65 78 70 72 | 65 73 73 69 6f 6e 20 69 | An expr|ession i|
|00004350| 73 20 46 41 4c 53 45 20 | 69 66 20 69 74 20 69 73 |s FALSE |if it is|
|00004360| 20 65 71 75 61 6c 20 74 | 6f 0d 0a 20 20 7a 65 72 | equal t|o.. zer|
|00004370| 6f 20 6f 72 20 74 68 65 | 20 6e 75 6c 6c 20 73 74 |o or the| null st|
|00004380| 72 69 6e 67 2e 20 46 6f | 72 20 61 6e 79 20 6f 74 |ring. Fo|r any ot|
|00004390| 68 65 72 20 76 61 6c 75 | 65 73 2c 20 74 68 65 20 |her valu|es, the |
|000043a0| 65 78 70 72 65 73 73 69 | 6f 6e 20 69 73 20 54 52 |expressi|on is TR|
|000043b0| 55 45 2e 0d 0a 20 20 46 | 6f 72 20 65 78 61 6d 70 |UE... F|or examp|
|000043c0| 6c 65 3a 0d 0a 0d 0a 20 | 20 20 20 78 20 3d 20 34 |le:.... | x = 4|
|000043d0| 20 20 20 2f 2f 20 78 20 | 69 73 20 54 52 55 45 0d | // x |is TRUE.|
|000043e0| 0a 20 20 20 20 78 20 2b | 20 33 20 20 20 2f 2f 20 |. x +| 3 // |
|000043f0| 76 61 6c 75 65 20 69 73 | 20 54 52 55 45 0d 0a 20 |value is| TRUE.. |
|00004400| 20 20 20 78 20 2d 20 34 | 20 20 20 2f 2f 20 76 61 | x - 4| // va|
|00004410| 6c 75 65 20 69 73 20 46 | 41 4c 53 45 0d 0a 20 20 |lue is F|ALSE.. |
|00004420| 20 20 78 20 3d 20 27 27 | 20 20 2f 2f 20 78 20 69 | x = ''| // x i|
|00004430| 73 20 46 41 4c 53 45 0d | 0a 0d 0a 0d 0a 20 20 41 |s FALSE.|..... A|
|00004440| 72 69 74 68 6d 65 74 69 | 63 20 4f 70 65 72 61 74 |rithmeti|c Operat|
|00004450| 6f 72 73 00 0d 0a 20 20 | c4 c4 c4 c4 c4 c4 c4 c4 |ors... |........|
|00004460| c4 c4 c4 c4 c4 c4 c4 c4 | c4 c4 c4 c4 0d 0a 20 20 |........|...... |
|00004470| 41 72 69 74 68 6d 65 74 | 69 63 20 6f 70 65 72 61 |Arithmet|ic opera|
|00004480| 74 6f 72 73 20 61 72 65 | 20 75 73 65 64 20 74 6f |tors are| used to|
|00004490| 20 70 65 72 66 6f 72 6d | 20 73 69 6d 70 6c 65 20 | perform| simple |
|000044a0| 69 6e 74 65 67 65 72 20 | 61 72 69 74 68 6d 65 74 |integer |arithmet|
|000044b0| 69 63 20 6f 6e 0d 0a 20 | 20 6e 75 6d 62 65 72 73 |ic on.. | numbers|
|000044c0| 20 77 69 74 68 69 6e 20 | 65 78 70 72 65 73 73 69 | within |expressi|
|000044d0| 6f 6e 73 2e 20 54 68 65 | 20 72 65 73 75 6c 74 20 |ons. The| result |
|000044e0| 6f 66 20 61 6e 79 20 61 | 72 69 74 68 6d 65 74 69 |of any a|rithmeti|
|000044f0| 63 20 65 78 70 72 65 73 | 73 69 6f 6e 20 69 73 0d |c expres|sion is.|
|00004500| 0a 20 20 61 6c 77 61 79 | 73 20 61 6e 20 69 6e 74 |. alway|s an int|
|00004510| 65 67 65 72 20 69 6e 20 | 74 68 65 20 72 61 6e 67 |eger in |the rang|
|00004520| 65 20 6f 66 20 2d 32 2c | 31 34 37 2c 34 38 33 2c |e of -2,|147,483,|
|00004530| 36 34 38 20 74 6f 20 32 | 2c 31 34 37 2c 34 38 33 |648 to 2|,147,483|
|00004540| 2c 36 34 37 2e 20 54 68 | 65 0d 0a 20 20 61 72 69 |,647. Th|e.. ari|
|00004550| 74 68 6d 65 74 69 63 20 | 6f 70 65 72 61 74 6f 72 |thmetic |operator|
|00004560| 73 20 61 72 65 3a 0d 0a | 0d 0a 20 20 20 ff 2a ff |s are:..|.. .*.|
|00004570| 20 20 20 6d 75 6c 74 69 | 70 6c 69 63 61 74 69 6f | multi|plicatio|
|00004580| 6e 0d 0a 20 20 20 ff 2f | ff 20 20 20 64 69 76 69 |n.. ./|. divi|
|00004590| 73 69 6f 6e 0d 0a 20 20 | 20 ff 6d 6f 64 ff 20 6d |sion.. | .mod. m|
|000045a0| 6f 64 75 6c 61 74 69 6f | 6e 0d 0a 20 20 20 ff 2b |odulatio|n.. .+|
|000045b0| ff 20 20 20 61 64 64 69 | 74 69 6f 6e 0d 0a 20 20 |. addi|tion.. |
|000045c0| 20 ff 2d ff 20 20 20 73 | 75 62 74 72 61 63 74 69 | .-. s|ubtracti|
|000045d0| 6f 6e 20 28 6f 72 20 75 | 6e 61 72 79 20 6e 65 67 |on (or u|nary neg|
|000045e0| 61 74 69 6f 6e 29 0d 0a | 0d 0a 20 20 54 68 65 20 |ation)..|.. The |
|000045f0| 64 69 76 69 73 69 6f 6e | 20 61 6e 64 20 6d 6f 64 |division| and mod|
|00004600| 20 6f 70 65 72 61 74 6f | 72 73 20 70 65 72 66 6f | operato|rs perfo|
|00004610| 72 6d 20 61 6e 20 69 6e | 74 65 67 65 72 20 64 69 |rm an in|teger di|
|00004620| 76 69 73 69 6f 6e 2e 20 | 54 68 65 0d 0a 20 20 64 |vision. |The.. d|
|00004630| 69 76 69 73 69 6f 6e 20 | 6f 70 65 72 61 74 6f 72 |ivision |operator|
|00004640| 20 74 72 75 6e 63 61 74 | 65 73 20 61 6e 79 20 66 | truncat|es any f|
|00004650| 72 61 63 74 69 6f 6e 61 | 6c 20 72 65 73 75 6c 74 |ractiona|l result|
|00004660| 2e 20 54 68 65 20 6d 6f | 64 20 6f 70 65 72 61 74 |. The mo|d operat|
|00004670| 6f 72 0d 0a 20 20 72 65 | 74 75 72 6e 73 20 61 6e |or.. re|turns an|
|00004680| 20 69 6e 74 65 67 65 72 | 20 72 65 6d 61 69 6e 64 | integer| remaind|
|00004690| 65 72 2e 0d 0a 0d 0a 20 | 20 41 64 64 69 74 69 6f |er..... | Additio|
|000046a0| 6e 20 61 6e 64 20 73 75 | 62 74 72 61 63 74 69 6f |n and su|btractio|
|000046b0| 6e 20 68 61 76 65 20 61 | 20 6c 6f 77 65 72 20 70 |n have a| lower p|
|000046c0| 72 65 63 65 64 65 6e 63 | 65 20 74 68 61 6e 20 6d |recedenc|e than m|
|000046d0| 75 6c 74 69 70 6c 69 63 | 61 74 69 6f 6e 0d 0a 20 |ultiplic|ation.. |
|000046e0| 20 61 6e 64 20 64 69 76 | 69 73 69 6f 6e 2e 20 55 | and div|ision. U|
|000046f0| 6e 61 72 79 20 6e 65 67 | 61 74 69 6f 6e 20 68 61 |nary neg|ation ha|
|00004700| 73 20 61 20 68 69 67 68 | 65 72 20 70 72 65 63 65 |s a high|er prece|
|00004710| 64 65 6e 63 65 20 74 68 | 61 6e 20 74 68 61 6e 20 |dence th|an than |
|00004720| 61 6c 6c 20 74 68 65 0d | 0a 20 20 6f 74 68 65 72 |all the.|. other|
|00004730| 20 61 72 69 74 68 6d 65 | 74 69 63 20 6f 70 65 72 | arithme|tic oper|
|00004740| 61 74 6f 72 73 20 28 61 | 6e 64 20 61 6c 6c 20 6f |ators (a|nd all o|
|00004750| 74 68 65 72 20 6f 70 65 | 72 61 74 6f 72 73 20 65 |ther ope|rators e|
|00004760| 78 63 65 70 74 20 74 68 | 65 0d 0a 20 20 70 61 72 |xcept th|e.. par|
|00004770| 65 6e 74 68 65 73 65 73 | 20 61 6e 64 20 73 75 62 |entheses| and sub|
|00004780| 73 74 72 69 6e 67 20 6f | 70 65 72 61 74 6f 72 73 |string o|perators|
|00004790| 29 2e 0d 0a 0d 0a 20 20 | 45 78 61 6d 70 6c 65 73 |)..... |Examples|
|000047a0| 3a 0d 0a 0d 0a 20 20 20 | 20 79 20 3d 20 35 0d 0a |:.... | y = 5..|
|000047b0| 20 20 20 20 78 20 3d 20 | 28 36 20 2b 20 79 20 2a | x = |(6 + y *|
|000047c0| 20 33 29 20 2f 20 32 20 | 20 20 20 2f 2f 20 78 20 | 3) / 2 | // x |
|000047d0| 69 73 20 31 30 0d 0a 20 | 20 20 20 7a 20 3d 20 78 |is 10.. | z = x|
|000047e0| 20 6d 6f 64 20 33 20 20 | 20 20 20 20 20 20 20 20 | mod 3 | |
|000047f0| 20 20 2f 2f 20 7a 20 69 | 73 20 31 0d 0a 0d 0a 0d | // z i|s 1.....|
|00004800| 0a 20 20 52 65 6c 61 74 | 69 6f 6e 61 6c 20 4f 70 |. Relat|ional Op|
|00004810| 65 72 61 74 6f 72 73 00 | 0d 0a 20 20 c4 c4 c4 c4 |erators.|.. ....|
|00004820| c4 c4 c4 c4 c4 c4 c4 c4 | c4 c4 c4 c4 c4 c4 c4 c4 |........|........|
|00004830| 0d 0a 20 20 52 65 6c 61 | 74 69 6f 6e 61 6c 20 6f |.. Rela|tional o|
|00004840| 70 65 72 61 74 6f 72 73 | 20 61 72 65 20 75 73 65 |perators| are use|
|00004850| 64 20 74 6f 20 63 6f 6d | 70 61 72 65 20 74 77 6f |d to com|pare two|
|00004860| 20 65 78 70 72 65 73 73 | 69 6f 6e 73 2e 20 54 68 | express|ions. Th|
|00004870| 65 20 72 65 73 75 6c 74 | 0d 0a 20 20 6f 66 20 65 |e result|.. of e|
|00004880| 76 61 6c 75 61 74 69 6e | 67 20 61 20 72 65 6c 61 |valuatin|g a rela|
|00004890| 74 69 6f 6e 61 6c 20 6f | 70 65 72 61 74 6f 72 20 |tional o|perator |
|000048a0| 69 73 20 61 6c 77 61 79 | 73 20 65 69 74 68 65 72 |is alway|s either|
|000048b0| 20 54 52 55 45 20 28 31 | 29 20 6f 72 20 46 41 4c | TRUE (1|) or FAL|
|000048c0| 53 45 0d 0a 20 20 28 74 | 68 65 20 6e 75 6c 6c 20 |SE.. (t|he null |
|000048d0| 73 74 72 69 6e 67 29 2e | 20 52 65 6c 61 74 69 6f |string).| Relatio|
|000048e0| 6e 61 6c 20 6f 70 65 72 | 61 74 6f 72 73 20 68 61 |nal oper|ators ha|
|000048f0| 76 65 20 61 20 6c 6f 77 | 65 72 20 70 72 65 63 65 |ve a low|er prece|
|00004900| 64 65 6e 63 65 20 74 68 | 61 6e 0d 0a 20 20 61 72 |dence th|an.. ar|
|00004910| 69 74 68 6d 65 74 69 63 | 20 6f 70 65 72 61 74 6f |ithmetic| operato|
|00004920| 72 73 2e 20 54 68 65 20 | 72 65 6c 61 74 69 6f 6e |rs. The |relation|
|00004930| 61 6c 20 6f 70 65 72 61 | 74 6f 72 73 20 61 72 65 |al opera|tors are|
|00004940| 3a 0d 0a 0d 0a 20 20 20 | ff 3c ff 20 20 20 6c 65 |:.... |.<. le|
|00004950| 73 73 20 74 68 61 6e 0d | 0a 20 20 20 ff 3c 3d ff |ss than.|. .<=.|
|00004960| 20 20 6c 65 73 73 20 74 | 68 61 6e 20 6f 72 20 65 | less t|han or e|
|00004970| 71 75 61 6c 20 74 6f 0d | 0a 20 20 20 ff 3e ff 20 |qual to.|. .>. |
|00004980| 20 20 67 72 65 61 74 65 | 72 20 74 68 61 6e 0d 0a | greate|r than..|
|00004990| 20 20 20 ff 3e 3d ff 20 | 20 67 72 65 61 74 65 72 | .>=. | greater|
|000049a0| 20 74 68 61 6e 20 6f 72 | 20 65 71 75 61 6c 20 74 | than or| equal t|
|000049b0| 6f 0d 0a 20 20 20 ff 3d | 3d ff 20 20 65 71 75 61 |o.. .=|=. equa|
|000049c0| 6c 20 74 6f 0d 0a 20 20 | 20 ff 3c 3e ff 20 20 6e |l to.. | .<>. n|
|000049d0| 6f 74 20 65 71 75 61 6c | 20 74 6f 0d 0a 0d 0a 20 |ot equal| to.... |
|000049e0| 20 4e 6f 74 65 20 74 68 | 61 74 20 72 65 6c 61 74 | Note th|at relat|
|000049f0| 69 6f 6e 61 6c 20 6f 70 | 65 72 61 74 6f 72 73 20 |ional op|erators |
|00004a00| 63 61 6e 20 62 65 20 75 | 73 65 64 20 74 6f 20 63 |can be u|sed to c|
|00004a10| 6f 6d 70 61 72 65 20 62 | 6f 74 68 20 6e 75 6d 62 |ompare b|oth numb|
|00004a20| 65 72 73 20 61 6e 64 0d | 0a 20 20 73 74 72 69 6e |ers and.|. strin|
|00004a30| 67 73 2e 20 53 74 72 69 | 6e 67 73 20 61 72 65 20 |gs. Stri|ngs are |
|00004a40| 63 6f 6d 70 61 72 65 64 | 20 62 79 20 74 65 73 74 |compared| by test|
|00004a50| 69 6e 67 20 74 68 65 20 | 41 53 43 49 49 20 76 61 |ing the |ASCII va|
|00004a60| 6c 75 65 73 20 6f 66 20 | 65 61 63 68 0d 0a 20 20 |lues of |each.. |
|00004a70| 63 68 61 72 61 63 74 65 | 72 20 69 6e 20 74 68 65 |characte|r in the|
|00004a80| 20 73 74 72 69 6e 67 20 | 66 72 6f 6d 20 6c 65 66 | string |from lef|
|00004a90| 74 20 74 6f 20 72 69 67 | 68 74 20 28 61 20 63 61 |t to rig|ht (a ca|
|00004aa0| 73 65 20 73 65 6e 73 69 | 74 69 76 65 0d 0a 20 20 |se sensi|tive.. |
|00004ab0| 63 6f 6d 70 61 72 69 73 | 6f 6e 29 2e 0d 0a 0d 0a |comparis|on).....|
|00004ac0| 20 20 45 78 61 6d 70 6c | 65 73 3a 0d 0a 0d 0a 20 | Exampl|es:.... |
|00004ad0| 20 20 20 2f 2f 20 6e 75 | 6d 65 72 69 63 20 63 6f | // nu|meric co|
|00004ae0| 6d 70 61 72 69 73 6f 6e | 73 0d 0a 20 20 20 20 61 |mparison|s.. a|
|00004af0| 20 3d 20 34 20 20 62 20 | 3d 20 35 0d 0a 20 20 20 | = 4 b |= 5.. |
|00004b00| 20 61 20 3c 20 62 20 20 | 20 61 20 3c 3e 20 62 20 | a < b | a <> b |
|00004b10| 20 61 20 3d 3d 20 62 20 | 2d 20 31 20 20 2f 2f 20 | a == b |- 1 // |
|00004b20| 74 68 65 73 65 20 65 78 | 70 72 65 73 73 69 6f 6e |these ex|pression|
|00004b30| 73 20 61 72 65 20 54 52 | 55 45 0d 0a 20 20 20 20 |s are TR|UE.. |
|00004b40| 61 20 3e 20 62 20 20 20 | 61 20 3d 3d 20 62 20 20 |a > b |a == b |
|00004b50| 20 20 20 20 20 20 20 20 | 20 20 20 20 2f 2f 20 74 | | // t|
|00004b60| 68 65 73 65 20 65 78 70 | 72 65 73 73 69 6f 6e 73 |hese exp|ressions|
|00004b70| 20 61 72 65 20 46 41 4c | 53 45 0d 0a 20 20 20 20 | are FAL|SE.. |
|00004b80| 78 20 3d 20 61 20 3c 20 | 62 20 20 20 20 20 20 20 |x = a < |b |
|00004b90| 20 20 20 20 20 20 20 20 | 20 20 20 20 2f 2f 20 78 | | // x|
|00004ba0| 20 69 73 20 61 73 73 69 | 67 6e 65 64 20 61 20 76 | is assi|gned a v|
|00004bb0| 61 6c 75 65 20 6f 66 20 | 27 31 27 0d 0a 20 20 20 |alue of |'1'.. |
|00004bc0| 20 78 20 3d 20 61 20 3d | 3d 20 62 20 20 20 20 20 | x = a =|= b |
|00004bd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2f 2f 20 | | // |
|00004be0| 78 20 69 73 20 61 73 73 | 69 67 6e 65 64 20 74 68 |x is ass|igned th|
|00004bf0| 65 20 6e 75 6c 6c 20 73 | 74 72 69 6e 67 0d 0a 0d |e null s|tring...|
|00004c00| 0a 20 20 20 20 2f 2f 20 | 73 74 72 69 6e 67 20 63 |. // |string c|
|00004c10| 6f 6d 70 61 72 69 73 6f | 6e 73 0d 0a 20 20 20 20 |ompariso|ns.. |
|00004c20| 61 20 3d 20 22 61 62 63 | 22 20 20 62 20 3d 20 22 |a = "abc|" b = "|
|00004c30| 78 79 7a 22 0d 0a 20 20 | 20 20 61 20 3c 20 62 20 |xyz".. | a < b |
|00004c40| 20 20 61 20 3c 3e 20 62 | 20 20 20 20 20 20 20 20 | a <> b| |
|00004c50| 20 20 20 20 20 20 2f 2f | 20 74 68 65 73 65 20 65 | //| these e|
|00004c60| 78 70 72 65 73 73 69 6f | 6e 73 20 61 72 65 20 54 |xpressio|ns are T|
|00004c70| 52 55 45 0d 0a 20 20 20 | 20 61 20 3e 20 62 20 20 |RUE.. | a > b |
|00004c80| 20 61 20 3d 3d 20 62 20 | 20 20 20 20 20 20 20 20 | a == b | |
|00004c90| 20 20 20 20 20 2f 2f 20 | 74 68 65 73 65 20 65 78 | // |these ex|
|00004ca0| 70 72 65 73 73 69 6f 6e | 73 20 61 72 65 20 46 41 |pression|s are FA|
|00004cb0| 4c 53 45 0d 0a 20 20 20 | 20 78 20 3d 20 61 20 3c |LSE.. | x = a <|
|00004cc0| 20 62 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | b | |
|00004cd0| 20 20 20 20 20 2f 2f 20 | 78 20 69 73 20 61 73 73 | // |x is ass|
|00004ce0| 69 67 6e 65 64 20 61 20 | 76 61 6c 75 65 20 6f 66 |igned a |value of|
|00004cf0| 20 27 31 27 0d 0a 20 20 | 20 20 78 20 3d 20 61 20 | '1'.. | x = a |
|00004d00| 3d 3d 20 62 20 20 20 20 | 20 20 20 20 20 20 20 20 |== b | |
|00004d10| 20 20 20 20 20 20 2f 2f | 20 78 20 69 73 20 61 73 | //| x is as|
|00004d20| 73 69 67 6e 65 64 20 74 | 68 65 20 6e 75 6c 6c 20 |signed t|he null |
|00004d30| 73 74 72 69 6e 67 0d 0a | 0d 0a 0d 0a 20 20 53 74 |string..|.... St|
|00004d40| 72 69 6e 67 20 4f 70 65 | 72 61 74 6f 72 73 00 0d |ring Ope|rators..|
|00004d50| 0a 20 20 c4 c4 c4 c4 c4 | c4 c4 c4 c4 c4 c4 c4 c4 |. .....|........|
|00004d60| c4 c4 c4 0d 0a 20 20 53 | 74 72 69 6e 67 20 6f 70 |..... S|tring op|
|00004d70| 65 72 61 74 6f 72 73 20 | 61 72 65 20 75 73 65 64 |erators |are used|
|00004d80| 20 74 6f 20 70 65 72 66 | 6f 72 6d 20 73 74 72 69 | to perf|orm stri|
|00004d90| 6e 67 20 63 6f 6e 63 61 | 74 65 6e 61 74 69 6f 6e |ng conca|tenation|
|00004da0| 20 61 6e 64 0d 0a 20 20 | 73 75 62 73 74 72 69 6e | and.. |substrin|
|00004db0| 67 20 6f 70 65 72 61 74 | 69 6f 6e 73 20 6f 6e 20 |g operat|ions on |
|00004dc0| 63 68 61 72 61 63 74 65 | 72 20 73 74 72 69 6e 67 |characte|r string|
|00004dd0| 73 2e 20 54 68 65 20 72 | 65 73 75 6c 74 20 6f 66 |s. The r|esult of|
|00004de0| 20 65 76 61 6c 75 61 74 | 69 6e 67 20 61 0d 0a 20 | evaluat|ing a.. |
|00004df0| 20 73 74 72 69 6e 67 20 | 65 78 70 72 65 73 73 69 | string |expressi|
|00004e00| 6f 6e 20 69 73 20 61 6c | 77 61 79 73 20 61 20 63 |on is al|ways a c|
|00004e10| 68 61 72 61 63 74 65 72 | 20 73 74 72 69 6e 67 2e |haracter| string.|
|00004e20| 20 54 68 65 20 73 74 72 | 69 6e 67 20 6f 70 65 72 | The str|ing oper|
|00004e30| 61 74 6f 72 73 0d 0a 20 | 20 61 72 65 3a 0d 0a 0d |ators.. | are:...|
|00004e40| 0a 20 20 20 ff 2b ff 20 | 20 20 20 20 20 20 20 20 |. .+. | |
|00004e50| 20 20 20 20 20 20 63 6f | 6e 63 61 74 65 6e 61 74 | co|ncatenat|
|00004e60| 69 6f 6e 0d 0a 20 20 20 | ff 5b ff 65 78 70 72 ff |ion.. |.[.expr.|
|00004e70| 5d ff 20 20 20 20 20 20 | 20 20 6f 6e 65 2d 63 68 |]. | one-ch|
|00004e80| 61 72 61 63 74 65 72 20 | 73 75 62 73 74 72 69 6e |aracter |substrin|
|00004e90| 67 0d 0a 20 20 20 ff 5b | ff 65 78 70 72 ff 3a ff |g.. .[|.expr.:.|
|00004ea0| 65 78 70 72 ff 5d ff 20 | 6d 75 6c 74 69 2d 63 68 |expr.]. |multi-ch|
|00004eb0| 61 72 61 63 74 65 72 20 | 73 75 62 73 74 72 69 6e |aracter |substrin|
|00004ec0| 67 0d 0a 0d 0a 20 20 54 | 68 65 20 63 6f 6e 63 61 |g.... T|he conca|
|00004ed0| 74 65 6e 61 74 69 6f 6e | 20 6f 70 65 72 61 74 6f |tenation| operato|
|00004ee0| 72 20 27 2b 27 20 69 73 | 20 75 73 65 64 20 74 6f |r '+' is| used to|
|00004ef0| 20 6a 6f 69 6e 20 74 77 | 6f 20 6f 72 20 6d 6f 72 | join tw|o or mor|
|00004f00| 65 20 73 74 72 69 6e 67 | 73 0d 0a 20 20 74 6f 67 |e string|s.. tog|
|00004f10| 65 74 68 65 72 2e 20 46 | 6f 72 20 65 78 61 6d 70 |ether. F|or examp|
|00004f20| 6c 65 3a 0d 0a 0d 0a 20 | 20 20 20 61 20 3d 20 22 |le:.... | a = "|
|00004f30| 61 70 70 6c 65 73 22 0d | 0a 20 20 20 20 62 20 3d |apples".|. b =|
|00004f40| 20 22 6f 72 61 6e 67 65 | 73 22 0d 0a 20 20 20 20 | "orange|s".. |
|00004f50| 78 20 3d 20 61 20 2b 20 | 22 20 61 6e 64 20 22 20 |x = a + |" and " |
|00004f60| 2b 20 62 20 20 20 20 20 | 20 20 20 2f 2f 20 78 20 |+ b | // x |
|00004f70| 69 73 20 27 61 70 70 6c | 65 73 20 61 6e 64 20 6f |is 'appl|es and o|
|00004f80| 72 61 6e 67 65 73 27 0d | 0a 20 20 20 20 78 20 3d |ranges'.|. x =|
|00004f90| 20 34 20 2b 20 27 20 27 | 20 2b 20 61 20 20 20 20 | 4 + ' '| + a |
|00004fa0| 20 20 20 20 20 20 20 20 | 2f 2f 20 78 20 69 73 20 | |// x is |
|00004fb0| 27 34 20 61 70 70 6c 65 | 73 27 0d 0a 0d 0a 20 20 |'4 apple|s'.... |
|00004fc0| 53 69 6e 63 65 20 74 68 | 65 20 63 6f 6e 63 61 74 |Since th|e concat|
|00004fd0| 65 6e 61 74 69 6f 6e 20 | 6f 70 65 72 61 74 6f 72 |enation |operator|
|00004fe0| 20 27 2b 27 20 69 73 20 | 69 64 65 6e 74 69 63 61 | '+' is |identica|
|00004ff0| 6c 20 74 6f 20 74 68 65 | 20 61 64 64 69 74 69 6f |l to the| additio|
|00005000| 6e 0d 0a 20 20 6f 70 65 | 72 61 74 6f 72 20 27 2b |n.. ope|rator '+|
|00005010| 27 2c 20 74 77 6f 20 6e | 75 6d 65 72 69 63 20 73 |', two n|umeric s|
|00005020| 74 72 69 6e 67 73 20 63 | 61 6e 6e 6f 74 20 62 65 |trings c|annot be|
|00005030| 20 63 6f 6e 63 61 74 65 | 6e 61 74 65 64 20 77 69 | concate|nated wi|
|00005040| 74 68 20 27 2b 27 2e 20 | 49 6e 0d 0a 20 20 74 68 |th '+'. |In.. th|
|00005050| 69 73 20 63 61 73 65 2c | 20 61 64 64 69 74 69 6f |is case,| additio|
|00005060| 6e 20 74 61 6b 65 73 20 | 70 72 65 63 65 64 65 6e |n takes |preceden|
|00005070| 63 65 20 28 41 4d 4c 20 | 69 73 20 61 20 74 79 70 |ce (AML |is a typ|
|00005080| 65 6c 65 73 73 20 6c 61 | 6e 67 75 61 67 65 29 3a |eless la|nguage):|
|00005090| 0d 0a 0d 0a 20 20 20 20 | 78 20 3d 20 22 31 33 22 |.... |x = "13"|
|000050a0| 20 2b 20 22 31 32 22 20 | 20 20 20 20 20 20 20 20 | + "12" | |
|000050b0| 20 20 20 2f 2f 20 78 20 | 69 73 20 32 35 0d 0a 20 | // x |is 25.. |
|000050c0| 20 20 20 78 20 3d 20 22 | 31 33 22 20 2b 20 34 20 | x = "|13" + 4 |
|000050d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2f 2f | | //|
|000050e0| 20 78 20 69 73 20 31 37 | 0d 0a 0d 0a 20 20 54 6f | x is 17|.... To|
|000050f0| 20 63 6f 6e 63 61 74 65 | 6e 61 74 65 20 74 77 6f | concate|nate two|
|00005100| 20 6f 72 20 6d 6f 72 65 | 20 6e 75 6d 65 72 69 63 | or more| numeric|
|00005110| 20 73 74 72 69 6e 67 73 | 2c 20 75 73 65 20 74 68 | strings|, use th|
|00005120| 65 20 27 63 6f 6e 63 61 | 74 27 20 62 75 69 6c 74 |e 'conca|t' built|
|00005130| 69 6e 0d 0a 20 20 66 75 | 6e 63 74 69 6f 6e 3a 0d |in.. fu|nction:.|
|00005140| 0a 0d 0a 20 20 20 20 78 | 20 3d 20 63 6f 6e 63 61 |... x| = conca|
|00005150| 74 20 22 31 33 22 20 22 | 31 32 22 20 20 20 20 20 |t "13" "|12" |
|00005160| 20 20 2f 2f 20 78 20 69 | 73 20 22 31 33 31 32 22 | // x i|s "1312"|
|00005170| 0d 0a 0d 0a 20 20 54 68 | 65 20 73 75 62 73 74 72 |.... Th|e substr|
|00005180| 69 6e 67 20 6f 70 65 72 | 61 74 6f 72 20 5b 5d 20 |ing oper|ator [] |
|00005190| 69 73 20 75 73 65 64 20 | 74 6f 20 72 65 74 75 72 |is used |to retur|
|000051a0| 6e 20 61 20 70 6f 72 74 | 69 6f 6e 20 6f 66 20 61 |n a port|ion of a|
|000051b0| 20 73 74 72 69 6e 67 2e | 20 49 66 0d 0a 20 20 6f | string.| If.. o|
|000051c0| 6e 6c 79 20 6f 6e 65 20 | 6e 75 6d 65 72 69 63 20 |nly one |numeric |
|000051d0| 6f 70 65 72 61 6e 64 20 | 69 73 20 73 70 65 63 69 |operand |is speci|
|000051e0| 66 69 65 64 2c 20 74 68 | 65 6e 20 74 68 65 20 73 |fied, th|en the s|
|000051f0| 75 62 73 74 72 69 6e 67 | 20 6f 70 65 72 61 74 6f |ubstring| operato|
|00005200| 72 0d 0a 20 20 72 65 66 | 65 72 65 6e 63 65 73 20 |r.. ref|erences |
|00005210| 61 20 6f 6e 65 2d 63 68 | 61 72 61 63 74 65 72 20 |a one-ch|aracter |
|00005220| 73 75 62 73 74 72 69 6e | 67 20 61 74 20 74 68 65 |substrin|g at the|
|00005230| 20 70 6f 73 69 74 69 6f | 6e 20 69 6e 20 74 68 65 | positio|n in the|
|00005240| 20 73 74 72 69 6e 67 0d | 0a 20 20 73 70 65 63 69 | string.|. speci|
|00005250| 66 69 65 64 20 62 79 20 | 74 68 65 20 6f 70 65 72 |fied by |the oper|
|00005260| 61 6e 64 2e 20 46 6f 72 | 20 65 78 61 6d 70 6c 65 |and. For| example|
|00005270| 3a 0d 0a 0d 0a 20 20 20 | 20 61 20 3d 20 22 61 70 |:.... | a = "ap|
|00005280| 70 6c 65 73 22 0d 0a 20 | 20 20 20 62 20 3d 20 22 |ples".. | b = "|
|00005290| 6f 72 61 6e 67 65 73 22 | 0d 0a 20 20 20 20 78 20 |oranges"|.. x |
|000052a0| 3d 20 61 20 5b 31 5d 20 | 20 20 20 20 20 20 20 20 |= a [1] | |
|000052b0| 20 20 20 20 20 20 20 20 | 20 2f 2f 20 78 20 69 73 | | // x is|
|000052c0| 20 27 61 27 0d 0a 20 20 | 20 20 78 20 3d 20 62 20 | 'a'.. | x = b |
|000052d0| 5b 35 5d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |[5] | |
|000052e0| 20 20 20 20 20 2f 2f 20 | 78 20 69 73 20 27 67 27 | // |x is 'g'|
|000052f0| 0d 0a 20 20 20 20 6e 20 | 3d 20 34 0d 0a 20 20 20 |.. n |= 4.. |
|00005300| 20 78 20 3d 20 62 20 5b | 6e 20 2b 20 32 5d 20 20 | x = b [|n + 2] |
|00005310| 20 20 20 20 20 20 20 20 | 20 20 20 20 2f 2f 20 78 | | // x|
|00005320| 20 69 73 20 27 65 27 0d | 0a 0d 0a 20 20 53 70 65 | is 'e'.|... Spe|
|00005330| 63 69 66 79 69 6e 67 20 | 61 20 70 6f 73 69 74 69 |cifying |a positi|
|00005340| 6f 6e 20 6f 66 20 7a 65 | 72 6f 20 72 65 66 65 72 |on of ze|ro refer|
|00005350| 65 6e 63 65 73 20 74 68 | 65 20 6c 61 73 74 20 63 |ences th|e last c|
|00005360| 68 61 72 61 63 74 65 72 | 20 69 6e 20 74 68 65 0d |haracter| in the.|
|00005370| 0a 20 20 73 74 72 69 6e | 67 3a 0d 0a 0d 0a 20 20 |. strin|g:.... |
|00005380| 20 20 61 20 3d 20 22 61 | 70 70 6c 65 73 22 0d 0a | a = "a|pples"..|
|00005390| 20 20 20 20 78 20 3d 20 | 61 20 5b 30 5d 20 20 20 | x = |a [0] |
|000053a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2f | | /|
|000053b0| 2f 20 78 20 69 73 20 27 | 73 27 0d 0a 0d 0a 20 20 |/ x is '|s'.... |
|000053c0| 49 66 20 74 77 6f 20 6e | 75 6d 65 72 69 63 20 6f |If two n|umeric o|
|000053d0| 70 65 72 61 6e 64 73 20 | 61 72 65 20 73 70 65 63 |perands |are spec|
|000053e0| 69 66 69 65 64 20 73 65 | 70 61 72 61 74 65 64 20 |ified se|parated |
|000053f0| 62 79 20 61 20 63 6f 6c | 6f 6e 2c 20 74 68 65 6e |by a col|on, then|
|00005400| 20 74 68 65 0d 0a 20 20 | 73 75 62 73 74 72 69 6e | the.. |substrin|
|00005410| 67 20 6f 70 65 72 61 74 | 6f 72 20 72 65 66 65 72 |g operat|or refer|
|00005420| 65 6e 63 65 73 20 61 20 | 6d 75 6c 74 69 2d 63 68 |ences a |multi-ch|
|00005430| 61 72 61 63 74 65 72 20 | 73 75 62 73 74 72 69 6e |aracter |substrin|
|00005440| 67 20 61 74 20 74 68 65 | 0d 0a 20 20 70 6f 73 69 |g at the|.. posi|
|00005450| 74 69 6f 6e 20 69 6e 20 | 74 68 65 20 73 74 72 69 |tion in |the stri|
|00005460| 6e 67 20 73 70 65 63 69 | 66 69 65 64 20 62 79 20 |ng speci|fied by |
|00005470| 74 68 65 20 66 69 72 73 | 74 20 6f 70 65 72 61 6e |the firs|t operan|
|00005480| 64 20 66 6f 72 20 74 68 | 65 20 6c 65 6e 67 74 68 |d for th|e length|
|00005490| 0d 0a 20 20 73 70 65 63 | 69 66 69 65 64 20 62 79 |.. spec|ified by|
|000054a0| 20 74 68 65 20 73 65 63 | 6f 6e 64 20 6f 70 65 72 | the sec|ond oper|
|000054b0| 61 6e 64 2e 20 46 6f 72 | 20 65 78 61 6d 70 6c 65 |and. For| example|
|000054c0| 3a 0d 0a 0d 0a 20 20 20 | 20 61 20 3d 20 22 61 70 |:.... | a = "ap|
|000054d0| 70 6c 65 73 22 0d 0a 20 | 20 20 20 62 20 3d 20 22 |ples".. | b = "|
|000054e0| 6f 72 61 6e 67 65 73 22 | 0d 0a 20 20 20 20 78 20 |oranges"|.. x |
|000054f0| 3d 20 61 20 5b 31 3a 33 | 5d 20 20 20 20 20 20 20 |= a [1:3|] |
|00005500| 20 20 20 20 20 20 20 20 | 20 2f 2f 20 78 20 69 73 | | // x is|
|00005510| 20 27 61 70 70 27 0d 0a | 20 20 20 20 78 20 3d 20 | 'app'..| x = |
|00005520| 62 20 5b 32 3a 35 5d 20 | 20 20 20 20 20 20 20 20 |b [2:5] | |
|00005530| 20 20 20 20 20 20 20 2f | 2f 20 78 20 69 73 20 27 | /|/ x is '|
|00005540| 72 61 6e 67 65 27 0d 0a | 20 20 20 20 6e 20 3d 20 |range'..| n = |
|00005550| 33 0d 0a 20 20 20 20 78 | 20 3d 20 62 20 5b 6e 20 |3.. x| = b [n |
|00005560| 2d 20 31 20 3a 20 6e 20 | 2b 20 32 5d 20 20 20 20 |- 1 : n |+ 2] |
|00005570| 20 20 2f 2f 20 78 20 69 | 73 20 27 72 61 6e 67 65 | // x i|s 'range|
|00005580| 27 0d 0a 0d 0a 20 20 53 | 70 65 63 69 66 79 69 6e |'.... S|pecifyin|
|00005590| 67 20 61 20 6c 65 6e 67 | 74 68 20 6f 66 20 7a 65 |g a leng|th of ze|
|000055a0| 72 6f 20 72 65 74 75 72 | 6e 73 20 74 68 65 20 72 |ro retur|ns the r|
|000055b0| 65 6d 61 69 6e 64 65 72 | 20 6f 66 20 74 68 65 20 |emainder| of the |
|000055c0| 73 74 72 69 6e 67 2c 0d | 0a 20 20 73 74 61 72 74 |string,.|. start|
|000055d0| 69 6e 67 20 61 74 20 74 | 68 65 20 73 70 65 63 69 |ing at t|he speci|
|000055e0| 66 69 65 64 20 70 6f 73 | 69 74 69 6f 6e 3a 0d 0a |fied pos|ition:..|
|000055f0| 0d 0a 20 20 20 20 62 20 | 3d 20 22 6f 72 61 6e 67 |.. b |= "orang|
|00005600| 65 73 22 0d 0a 20 20 20 | 20 78 20 3d 20 62 20 5b |es".. | x = b [|
|00005610| 32 3a 30 5d 20 20 20 20 | 20 20 20 20 20 20 20 20 |2:0] | |
|00005620| 20 20 20 20 2f 2f 20 78 | 20 69 73 20 27 72 61 6e | // x| is 'ran|
|00005630| 67 65 73 27 0d 0a 0d 0a | 20 20 4e 6f 74 65 20 74 |ges'....| Note t|
|00005640| 68 61 74 20 74 68 65 20 | 5b 5d 20 6f 70 65 72 61 |hat the |[] opera|
|00005650| 74 6f 72 20 69 73 20 6e | 6f 74 20 6c 69 6d 69 74 |tor is n|ot limit|
|00005660| 65 64 20 74 6f 20 76 61 | 72 69 61 62 6c 65 73 2e |ed to va|riables.|
|00005670| 20 54 68 65 20 5b 5d 20 | 6f 70 65 72 61 74 6f 72 | The [] |operator|
|00005680| 0d 0a 20 20 63 61 6e 20 | 61 6c 73 6f 20 62 65 20 |.. can |also be |
|00005690| 75 73 65 64 20 77 69 74 | 68 20 63 6f 6e 73 74 61 |used wit|h consta|
|000056a0| 6e 74 73 2c 20 6e 75 6d | 62 65 72 73 2c 20 65 78 |nts, num|bers, ex|
|000056b0| 70 72 65 73 73 69 6f 6e | 73 2c 20 61 6e 64 20 66 |pression|s, and f|
|000056c0| 75 6e 63 74 69 6f 6e 0d | 0a 20 20 63 61 6c 6c 73 |unction.|. calls|
|000056d0| 2e 20 46 6f 72 20 65 78 | 61 6d 70 6c 65 3a 0d 0a |. For ex|ample:..|
|000056e0| 0d 0a 20 20 20 20 69 20 | 3d 20 32 0d 0a 20 20 20 |.. i |= 2.. |
|000056f0| 20 78 20 3d 20 22 6f 72 | 61 6e 67 65 73 22 20 5b | x = "or|anges" [|
|00005700| 69 20 3a 20 35 5d 20 20 | 20 20 20 20 20 20 20 20 |i : 5] | |
|00005710| 20 20 20 20 2f 2f 20 78 | 20 69 73 20 27 72 61 6e | // x| is 'ran|
|00005720| 67 65 27 0d 0a 20 20 20 | 20 78 20 3d 20 32 36 33 |ge'.. | x = 263|
|00005730| 38 31 20 5b 33 20 3a 20 | 69 5d 20 20 20 20 20 20 |81 [3 : |i] |
|00005740| 20 20 20 20 20 20 20 20 | 20 20 20 20 2f 2f 20 78 | | // x|
|00005750| 20 69 73 20 27 33 38 27 | 0d 0a 20 20 20 20 78 20 | is '38'|.. x |
|00005760| 3d 20 28 27 6f 72 61 6e | 67 65 73 27 20 2b 20 27 |= ('oran|ges' + '|
|00005770| 61 70 70 6c 65 73 27 29 | 20 5b 37 3a 33 5d 20 20 |apples')| [7:3] |
|00005780| 20 2f 2f 20 78 20 69 73 | 20 27 73 61 70 27 0d 0a | // x is| 'sap'..|
|00005790| 20 20 20 20 78 20 3d 20 | 67 65 74 6c 69 6e 65 73 | x = |getlines|
|000057a0| 20 5b 30 5d 20 20 20 20 | 20 20 20 20 20 20 20 20 | [0] | |
|000057b0| 20 20 20 20 20 20 20 2f | 2f 20 78 20 69 73 20 74 | /|/ x is t|
|000057c0| 68 65 20 6c 61 73 74 20 | 64 69 67 69 74 20 6f 66 |he last |digit of|
|000057d0| 20 74 68 65 0d 0a 20 20 | 20 20 20 20 20 20 20 20 | the.. | |
|000057e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000057f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2f 2f 20 | | // |
|00005800| 20 20 74 6f 74 61 6c 20 | 6e 75 6d 62 65 72 20 6f | total |number o|
|00005810| 66 20 6c 69 6e 65 73 20 | 69 6e 20 74 68 65 0d 0a |f lines |in the..|
|00005820| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005830| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005840| 20 20 20 20 20 20 20 2f | 2f 20 20 20 63 75 72 72 | /|/ curr|
|00005850| 65 6e 74 20 62 75 66 66 | 65 72 0d 0a 0d 0a 0d 0a |ent buff|er......|
|00005860| 20 20 4c 6f 67 69 63 61 | 6c 20 4f 70 65 72 61 74 | Logica|l Operat|
|00005870| 6f 72 73 00 0d 0a 20 20 | c4 c4 c4 c4 c4 c4 c4 c4 |ors... |........|
|00005880| c4 c4 c4 c4 c4 c4 c4 c4 | c4 0d 0a 20 20 4c 6f 67 |........|... Log|
|00005890| 69 63 61 6c 20 6f 70 65 | 72 61 74 6f 72 73 20 74 |ical ope|rators t|
|000058a0| 65 73 74 20 77 68 65 74 | 68 65 72 20 6f 72 20 6e |est whet|her or n|
|000058b0| 6f 74 20 65 78 70 72 65 | 73 73 69 6f 6e 73 20 61 |ot expre|ssions a|
|000058c0| 72 65 20 54 52 55 45 20 | 6f 72 20 46 41 4c 53 45 |re TRUE |or FALSE|
|000058d0| 2e 0d 0a 20 20 54 68 65 | 20 72 65 73 75 6c 74 20 |... The| result |
|000058e0| 6f 66 20 65 76 61 6c 75 | 61 74 69 6e 67 20 61 20 |of evalu|ating a |
|000058f0| 6c 6f 67 69 63 61 6c 20 | 6f 70 65 72 61 74 6f 72 |logical |operator|
|00005900| 20 69 73 20 61 6c 73 6f | 20 65 69 74 68 65 72 20 | is also| either |
|00005910| 54 52 55 45 20 28 31 29 | 20 6f 72 0d 0a 20 20 46 |TRUE (1)| or.. F|
|00005920| 41 4c 53 45 20 28 74 68 | 65 20 6e 75 6c 6c 20 73 |ALSE (th|e null s|
|00005930| 74 72 69 6e 67 29 2e 20 | 54 68 65 20 6c 6f 67 69 |tring). |The logi|
|00005940| 63 61 6c 20 6f 70 65 72 | 61 74 6f 72 73 20 61 72 |cal oper|ators ar|
|00005950| 65 3a 0d 0a 0d 0a 20 20 | 20 ff 61 6e 64 ff 20 2d |e:.... | .and. -|
|00005960| 20 74 65 73 74 73 20 69 | 66 20 74 77 6f 20 65 78 | tests i|f two ex|
|00005970| 70 72 65 73 73 69 6f 6e | 73 20 61 72 65 20 54 52 |pression|s are TR|
|00005980| 55 45 0d 0a 20 20 20 ff | 6f 72 ff 20 20 2d 20 74 |UE.. .|or. - t|
|00005990| 65 73 74 73 20 69 66 20 | 61 74 20 6c 65 61 73 74 |ests if |at least|
|000059a0| 20 6f 6e 65 20 6f 66 20 | 74 77 6f 20 65 78 70 72 | one of |two expr|
|000059b0| 65 73 73 69 6f 6e 73 20 | 69 73 20 54 52 55 45 0d |essions |is TRUE.|
|000059c0| 0a 20 20 20 ff 6e 6f 74 | ff 20 2d 20 74 65 73 74 |. .not|. - test|
|000059d0| 73 20 69 66 20 61 6e 20 | 65 78 70 72 65 73 73 69 |s if an |expressi|
|000059e0| 6f 6e 20 69 73 20 46 41 | 4c 53 45 0d 0a 0d 0a 20 |on is FA|LSE.... |
|000059f0| 20 45 78 61 6d 70 6c 65 | 73 3a 0d 0a 0d 0a 20 20 | Example|s:.... |
|00005a00| 20 20 61 20 3d 20 34 20 | 20 62 20 3d 20 35 0d 0a | a = 4 | b = 5..|
|00005a10| 20 20 20 20 61 ff 61 6e | 64 ff 62 20 20 20 20 20 | a.an|d.b |
|00005a20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005a30| 20 20 2f 2f 20 76 61 6c | 75 65 20 69 73 20 54 52 | // val|ue is TR|
|00005a40| 55 45 0d 0a 20 20 20 20 | 61 20 2d 20 34 ff 61 6e |UE.. |a - 4.an|
|00005a50| 64 ff 62 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |d.b | |
|00005a60| 20 20 20 20 20 20 2f 2f | 20 76 61 6c 75 65 20 69 | //| value i|
|00005a70| 73 20 46 41 4c 53 45 0d | 0a 20 20 20 20 61 20 2d |s FALSE.|. a -|
|00005a80| 20 34 ff 6f 72 ff 62 20 | 20 20 20 20 20 20 20 20 | 4.or.b | |
|00005a90| 20 20 20 20 20 20 20 20 | 20 20 20 2f 2f 20 76 61 | | // va|
|00005aa0| 6c 75 65 20 69 73 20 54 | 52 55 45 0d 0a 20 20 20 |lue is T|RUE.. |
|00005ab0| 20 61 20 3d 3d 20 35 ff | 6f 72 ff 62 20 3d 3d 20 | a == 5.|or.b == |
|00005ac0| 34 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2f |4 | /|
|00005ad0| 2f 20 76 61 6c 75 65 20 | 69 73 20 46 41 4c 53 45 |/ value |is FALSE|
|00005ae0| 0d 0a 20 20 20 ff 6e 6f | 74 ff 61 20 20 20 20 20 |.. .no|t.a |
|00005af0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005b00| 20 20 20 20 2f 2f 20 76 | 61 6c 75 65 20 69 73 20 | // v|alue is |
|00005b10| 46 41 4c 53 45 0d 0a 20 | 20 20 ff 6e 6f 74 ff 28 |FALSE.. | .not.(|
|00005b20| 62 20 2d 20 61 20 2d 20 | 31 29 20 20 20 20 20 20 |b - a - |1) |
|00005b30| 20 20 20 20 20 20 20 20 | 20 2f 2f 20 76 61 6c 75 | | // valu|
|00005b40| 65 20 69 73 20 54 52 55 | 45 0d 0a 0d 0a 20 20 54 |e is TRU|E.... T|
|00005b50| 68 65 20 27 61 6e 64 27 | 20 61 6e 64 20 27 6f 72 |he 'and'| and 'or|
|00005b60| 27 20 6f 70 65 72 61 74 | 6f 72 73 20 68 61 76 65 |' operat|ors have|
|00005b70| 20 61 20 6c 6f 77 65 72 | 20 70 72 65 63 65 64 65 | a lower| precede|
|00005b80| 6e 63 65 20 74 68 61 6e | 20 74 68 65 0d 0a 20 20 |nce than| the.. |
|00005b90| 61 72 69 74 68 6d 65 74 | 69 63 20 61 6e 64 20 72 |arithmet|ic and r|
|00005ba0| 65 6c 61 74 69 6f 6e 61 | 6c 20 6f 70 65 72 61 74 |elationa|l operat|
|00005bb0| 6f 72 73 2e 20 46 6f 72 | 20 65 78 61 6d 70 6c 65 |ors. For| example|
|00005bc0| 3a 0d 0a 0d 0a 20 20 20 | 20 61 20 3d 3d 20 34 ff |:.... | a == 4.|
|00005bd0| 61 6e 64 ff 61 20 3d 3d | 20 62 20 2d 20 31 20 20 |and.a ==| b - 1 |
|00005be0| 20 20 20 20 20 20 20 2f | 2f 20 69 73 20 65 71 75 | /|/ is equ|
|00005bf0| 69 76 61 6c 65 6e 74 20 | 74 6f 2e 2e 0d 0a 20 20 |ivalent |to.... |
|00005c00| 20 20 28 61 20 3d 3d 20 | 34 29 ff 61 6e 64 ff 28 | (a == |4).and.(|
|00005c10| 61 20 3d 3d 20 28 62 20 | 2d 20 31 29 29 0d 0a 0d |a == (b |- 1))...|
|00005c20| 0a 20 20 54 68 65 20 27 | 6e 6f 74 27 20 6f 70 65 |. The '|not' ope|
|00005c30| 72 61 74 6f 72 20 68 61 | 73 20 61 20 68 69 67 68 |rator ha|s a high|
|00005c40| 65 72 20 70 72 65 63 65 | 64 65 6e 63 65 20 74 68 |er prece|dence th|
|00005c50| 61 6e 20 62 6f 74 68 20 | 74 68 65 20 61 72 69 74 |an both |the arit|
|00005c60| 68 6d 65 74 69 63 0d 0a | 20 20 61 6e 64 20 72 65 |hmetic..| and re|
|00005c70| 6c 61 74 69 6f 6e 61 6c | 20 6f 70 65 72 61 74 6f |lational| operato|
|00005c80| 72 73 2e 20 46 6f 72 20 | 65 78 61 6d 70 6c 65 3a |rs. For |example:|
|00005c90| 0d 0a 0d 0a 20 20 20 20 | 62 20 3d 20 33 3b 0d 0a |.... |b = 3;..|
|00005ca0| 20 20 20 20 61 20 3d 20 | 6e 6f 74 20 62 20 2b 20 | a = |not b + |
|00005cb0| 31 20 20 20 20 20 20 20 | 2f 2f 20 61 20 69 73 20 |1 |// a is |
|00005cc0| 31 0d 0a 0d 0a 20 20 4e | 6f 74 65 20 74 68 61 74 |1.... N|ote that|
|00005cd0| 20 74 68 65 20 27 61 6e | 64 27 20 61 6e 64 20 27 | the 'an|d' and '|
|00005ce0| 6f 72 27 20 6f 70 65 72 | 61 74 6f 72 73 20 64 6f |or' oper|ators do|
|00005cf0| 20 6e 6f 74 20 61 6c 77 | 61 79 73 20 65 76 61 6c | not alw|ays eval|
|00005d00| 75 61 74 65 20 61 6c 6c | 20 74 68 65 0d 0a 20 20 |uate all| the.. |
|00005d10| 65 78 70 72 65 73 73 69 | 6f 6e 73 20 74 68 65 79 |expressi|ons they|
|00005d20| 20 63 6f 6d 70 61 72 65 | 2e 20 4f 6e 63 65 20 74 | compare|. Once t|
|00005d30| 68 65 20 76 61 6c 75 65 | 20 6f 66 20 74 68 65 20 |he value| of the |
|00005d40| 6c 6f 67 69 63 61 6c 20 | 65 78 70 72 65 73 73 69 |logical |expressi|
|00005d50| 6f 6e 20 69 73 0d 0a 20 | 20 6b 6e 6f 77 6e 2c 20 |on is.. | known, |
|00005d60| 6e 6f 20 66 75 72 74 68 | 65 72 20 65 76 61 6c 75 |no furth|er evalu|
|00005d70| 61 74 69 6f 6e 20 6f 63 | 63 75 72 73 2e 20 46 6f |ation oc|curs. Fo|
|00005d80| 72 20 65 78 61 6d 70 6c | 65 3a 0d 0a 0d 0a 20 20 |r exampl|e:.... |
|00005d90| 20 20 28 66 75 6e 41 20 | 31 29 ff 6f 72 ff 28 66 | (funA |1).or.(f|
|00005da0| 75 6e 42 20 32 29 0d 0a | 0d 0a 20 20 49 6e 20 74 |unB 2)..|.. In t|
|00005db0| 68 65 20 65 78 61 6d 70 | 6c 65 20 61 62 6f 76 65 |he examp|le above|
|00005dc0| 2c 20 69 66 20 27 66 75 | 6e 41 20 31 27 20 69 73 |, if 'fu|nA 1' is|
|00005dd0| 20 54 52 55 45 2c 20 74 | 68 65 20 6f 72 2d 65 78 | TRUE, t|he or-ex|
|00005de0| 70 72 65 73 73 69 6f 6e | 20 69 73 20 54 52 55 45 |pression| is TRUE|
|00005df0| 0d 0a 20 20 61 6e 64 20 | 74 68 65 20 66 75 6e 63 |.. and |the func|
|00005e00| 74 69 6f 6e 20 27 66 75 | 6e 42 27 20 69 73 20 6e |tion 'fu|nB' is n|
|00005e10| 6f 74 20 63 61 6c 6c 65 | 64 2e 20 53 69 6d 69 6c |ot calle|d. Simil|
|00005e20| 61 72 6c 79 3a 0d 0a 0d | 0a 20 20 20 20 28 66 75 |arly:...|. (fu|
|00005e30| 6e 41 20 31 29 ff 61 6e | 64 ff 28 66 75 6e 42 20 |nA 1).an|d.(funB |
|00005e40| 32 29 0d 0a 0d 0a 20 20 | 49 6e 20 74 68 65 20 61 |2).... |In the a|
|00005e50| 62 6f 76 65 20 65 78 61 | 6d 70 6c 65 2c 20 69 66 |bove exa|mple, if|
|00005e60| 20 27 66 75 6e 41 20 31 | 27 20 69 73 20 46 41 4c | 'funA 1|' is FAL|
|00005e70| 53 45 2c 20 74 68 65 20 | 61 6e 64 2d 65 78 70 72 |SE, the |and-expr|
|00005e80| 65 73 73 69 6f 6e 20 69 | 73 0d 0a 20 20 46 41 4c |ession i|s.. FAL|
|00005e90| 53 45 20 61 6e 64 20 74 | 68 65 20 66 75 6e 63 74 |SE and t|he funct|
|00005ea0| 69 6f 6e 20 27 66 75 6e | 42 27 20 69 73 20 6e 6f |ion 'fun|B' is no|
|00005eb0| 74 20 63 61 6c 6c 65 64 | 2e 0d 0a 0d 0a 0d 0a 20 |t called|....... |
|00005ec0| 20 42 69 74 77 69 73 65 | 20 4f 70 65 72 61 74 6f | Bitwise| Operato|
|00005ed0| 72 73 00 0d 0a 20 20 c4 | c4 c4 c4 c4 c4 c4 c4 c4 |rs... .|........|
|00005ee0| c4 c4 c4 c4 c4 c4 c4 c4 | 0d 0a 20 20 54 68 65 20 |........|.. The |
|00005ef0| 62 69 74 77 69 73 65 20 | 6f 70 65 72 61 74 6f 72 |bitwise |operator|
|00005f00| 73 20 63 61 6e 20 62 65 | 20 75 73 65 64 20 74 6f |s can be| used to|
|00005f10| 20 6d 61 6e 69 70 75 6c | 61 74 65 20 6f 72 20 74 | manipul|ate or t|
|00005f20| 65 73 74 20 69 6e 64 69 | 76 69 64 75 61 6c 0d 0a |est indi|vidual..|
|00005f30| 20 20 62 69 74 73 20 69 | 6e 20 6e 75 6d 65 72 69 | bits i|n numeri|
|00005f40| 63 20 65 78 70 72 65 73 | 73 69 6f 6e 73 2e 20 42 |c expres|sions. B|
|00005f50| 69 74 77 69 73 65 20 6f | 70 65 72 61 74 6f 72 73 |itwise o|perators|
|00005f60| 20 68 61 76 65 20 61 20 | 68 69 67 68 65 72 0d 0a | have a |higher..|
|00005f70| 20 20 70 72 65 63 65 64 | 65 6e 63 65 20 74 68 61 | preced|ence tha|
|00005f80| 6e 20 74 68 65 20 27 61 | 6e 64 27 20 61 6e 64 20 |n the 'a|nd' and |
|00005f90| 27 6f 72 27 20 6c 6f 67 | 69 63 61 6c 20 6f 70 65 |'or' log|ical ope|
|00005fa0| 72 61 74 6f 72 73 20 61 | 6e 64 20 61 20 6c 6f 77 |rators a|nd a low|
|00005fb0| 65 72 0d 0a 20 20 70 72 | 65 63 65 64 65 6e 63 65 |er.. pr|ecedence|
|00005fc0| 20 74 68 61 6e 20 74 68 | 65 20 72 65 6c 61 74 69 | than th|e relati|
|00005fd0| 6f 6e 61 6c 20 6f 70 65 | 72 61 74 6f 72 73 2e 20 |onal ope|rators. |
|00005fe0| 54 68 65 20 62 69 74 77 | 69 73 65 20 6f 70 65 72 |The bitw|ise oper|
|00005ff0| 61 74 6f 72 73 20 61 72 | 65 3a 0d 0a 0d 0a 20 20 |ators ar|e:.... |
|00006000| 20 ff 73 68 6c ff 20 20 | 73 68 69 66 74 20 62 69 | .shl. |shift bi|
|00006010| 74 73 20 6c 65 66 74 0d | 0a 20 20 20 ff 73 68 72 |ts left.|. .shr|
|00006020| ff 20 20 73 68 69 66 74 | 20 62 69 74 73 20 72 69 |. shift| bits ri|
|00006030| 67 68 74 0d 0a 20 20 20 | ff 26 ff 20 20 20 20 62 |ght.. |.&. b|
|00006040| 69 74 77 69 73 65 20 61 | 6e 64 0d 0a 20 20 20 ff |itwise a|nd.. .|
|00006050| 7c ff 20 20 20 20 62 69 | 74 77 69 73 65 20 6f 72 ||. bi|twise or|
|00006060| 0d 0a 20 20 20 ff 5e ff | 20 20 20 20 62 69 74 77 |.. .^.| bitw|
|00006070| 69 73 65 20 65 78 63 6c | 75 73 69 76 65 2d 6f 72 |ise excl|usive-or|
|00006080| 0d 0a 0d 0a 20 20 45 78 | 61 6d 70 6c 65 73 3a 0d |.... Ex|amples:.|
|00006090| 0a 0d 0a 20 20 20 20 61 | 20 3d 20 33 20 20 62 20 |... a| = 3 b |
|000060a0| 3d 20 36 20 20 20 20 20 | 2f 2f 20 61 20 3d 20 30 |= 6 |// a = 0|
|000060b0| 30 30 30 30 30 31 31 20 | 69 6e 20 62 69 6e 61 72 |0000011 |in binar|
|000060c0| 79 2c 20 62 20 3d 20 30 | 30 30 30 30 31 31 30 20 |y, b = 0|0000110 |
|000060d0| 69 6e 20 62 69 6e 61 72 | 79 0d 0a 20 20 20 20 61 |in binar|y.. a|
|000060e0| 20 73 68 6c 20 32 20 20 | 20 20 20 20 20 20 20 20 | shl 2 | |
|000060f0| 2f 2f 20 76 61 6c 75 65 | 20 69 73 20 30 30 30 30 |// value| is 0000|
|00006100| 31 31 30 30 20 69 6e 20 | 62 69 6e 61 72 79 2c 20 |1100 in |binary, |
|00006110| 6f 72 20 31 32 20 69 6e | 20 64 65 63 69 6d 61 6c |or 12 in| decimal|
|00006120| 0d 0a 20 20 20 20 62 20 | 73 68 6c 20 31 20 20 20 |.. b |shl 1 |
|00006130| 20 20 20 20 20 20 20 2f | 2f 20 76 61 6c 75 65 20 | /|/ value |
|00006140| 69 73 20 30 30 30 30 30 | 30 31 31 20 69 6e 20 62 |is 00000|011 in b|
|00006150| 69 6e 61 72 79 2c 20 6f | 72 20 33 20 69 6e 20 64 |inary, o|r 3 in d|
|00006160| 65 63 69 6d 61 6c 0d 0a | 20 20 20 20 61 20 26 20 |ecimal..| a & |
|00006170| 62 20 20 20 20 20 20 20 | 20 20 20 20 20 2f 2f 20 |b | // |
|00006180| 76 61 6c 75 65 20 69 73 | 20 30 30 30 30 30 30 31 |value is| 0000001|
|00006190| 30 20 69 6e 20 62 69 6e | 61 72 79 2c 20 6f 72 20 |0 in bin|ary, or |
|000061a0| 32 20 69 6e 20 64 65 63 | 69 6d 61 6c 0d 0a 20 20 |2 in dec|imal.. |
|000061b0| 20 20 61 20 7c 20 62 20 | 20 20 20 20 20 20 20 20 | a | b | |
|000061c0| 20 20 20 2f 2f 20 76 61 | 6c 75 65 20 69 73 20 30 | // va|lue is 0|
|000061d0| 30 30 30 30 31 31 31 20 | 69 6e 20 62 69 6e 61 72 |0000111 |in binar|
|000061e0| 79 2c 20 6f 72 20 37 20 | 69 6e 20 64 65 63 69 6d |y, or 7 |in decim|
|000061f0| 61 6c 0d 0a 20 20 20 20 | 61 20 5e 20 62 20 20 20 |al.. |a ^ b |
|00006200| 20 20 20 20 20 20 20 20 | 20 2f 2f 20 76 61 6c 75 | | // valu|
|00006210| 65 20 69 73 20 30 30 30 | 30 30 31 30 31 20 69 6e |e is 000|00101 in|
|00006220| 20 62 69 6e 61 72 79 2c | 20 6f 72 20 35 20 69 6e | binary,| or 5 in|
|00006230| 20 64 65 63 69 6d 61 6c | 0d 0a 20 20 20 20 61 20 | decimal|.. a |
|00006240| 26 20 30 66 68 20 20 20 | 20 20 20 20 20 20 20 2f |& 0fh | /|
|00006250| 2f 20 76 61 6c 75 65 20 | 69 73 20 54 52 55 45 20 |/ value |is TRUE |
|00006260| 28 74 68 65 20 35 74 68 | 20 62 69 74 20 69 73 20 |(the 5th| bit is |
|00006270| 27 31 27 20 69 6e 20 27 | 61 27 29 0d 0a 20 20 20 |'1' in '|a').. |
|00006280| 20 61 20 3d 20 61 20 7c | 20 34 20 20 20 20 20 20 | a = a || 4 |
|00006290| 20 20 2f 2f 20 74 75 72 | 6e 73 20 6f 6e 20 74 68 | // tur|ns on th|
|000062a0| 65 20 33 72 64 20 62 69 | 74 20 69 6e 20 27 61 27 |e 3rd bi|t in 'a'|
|000062b0| 2c 20 61 20 3d 20 37 0d | 0a 20 20 20 20 61 20 3d |, a = 7.|. a =|
|000062c0| 20 61 20 5e 20 38 20 20 | 20 20 20 20 20 20 2f 2f | a ^ 8 | //|
|000062d0| 20 74 6f 67 67 6c 65 73 | 20 74 68 65 20 34 74 68 | toggles| the 4th|
|000062e0| 20 62 69 74 20 69 6e 20 | 27 61 27 2c 20 61 20 3d | bit in |'a', a =|
|000062f0| 20 31 31 0d 0a 0d 0a 0d | 0a 20 20 4f 70 65 72 61 | 11.....|. Opera|
|00006300| 74 6f 72 20 50 72 65 63 | 65 64 65 6e 63 65 00 0d |tor Prec|edence..|
|00006310| 0a 20 20 c4 c4 c4 c4 c4 | c4 c4 c4 c4 c4 c4 c4 c4 |. .....|........|
|00006320| c4 c4 c4 c4 c4 c4 0d 0a | 20 20 54 68 65 20 66 6f |........| The fo|
|00006330| 6c 6c 6f 77 69 6e 67 20 | 74 61 62 6c 65 20 73 68 |llowing |table sh|
|00006340| 6f 77 73 20 74 68 65 20 | 70 72 65 63 65 64 65 6e |ows the |preceden|
|00006350| 63 65 20 6f 66 20 61 6c | 6c 20 6d 61 63 72 6f 20 |ce of al|l macro |
|00006360| 6c 61 6e 67 75 61 67 65 | 0d 0a 20 20 6f 70 65 72 |language|.. oper|
|00006370| 61 74 6f 72 73 20 28 6c | 6f 77 65 72 20 6c 65 76 |ators (l|ower lev|
|00006380| 65 6c 20 6e 75 6d 62 65 | 72 73 20 68 61 76 65 20 |el numbe|rs have |
|00006390| 68 69 67 68 65 72 20 70 | 72 65 63 65 64 65 6e 63 |higher p|recedenc|
|000063a0| 65 29 3a 0d 0a 0d 0a 20 | 20 4c 65 76 65 6c 20 20 |e):.... | Level |
|000063b0| 20 20 4f 70 65 72 61 74 | 6f 72 20 20 20 20 20 44 | Operat|or D|
|000063c0| 65 73 63 72 69 70 74 69 | 6f 6e 0d 0a 20 20 c4 c4 |escripti|on.. ..|
|000063d0| c4 c4 c4 20 20 20 20 c4 | c4 c4 c4 c4 c4 c4 c4 20 |... .|....... |
|000063e0| 20 20 20 20 c4 c4 c4 c4 | c4 c4 c4 c4 c4 c4 c4 0d | ....|........|
|000063f0| 0a 20 20 20 31 20 20 20 | 20 20 20 ff 28 29 ff 20 |. 1 | .(). |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.